1 2 3 4 5 6 7 8 9 10
{-# LANGUAGE TemplateHaskell, DataKinds, PolyKinds #-} module T6005 where $( [d| data Nat = Zero | Succ Nat data Proxy a = Proxy foo :: Proxy 'Zero foo = foo |])