summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T5882.hs
blob: 73805bf082fdca720ddac8011038d11ca4ed4222 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTSyntax, TemplateHaskell, KindSignatures #-}

module T5882 where
data Foo :: * -> * where
   Foo :: a -> Foo a

$( [d|  data Bar :: * -> * where
           Bar :: a -> Bar a
  |] )

f (Bar x) = Foo x