Test Trac #5882
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 16 Mar 2012 15:56:56 +0000 (15:56 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 16 Mar 2012 15:56:56 +0000 (15:56 +0000)
testsuite/tests/th/T5882.hs [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T5882.hs b/testsuite/tests/th/T5882.hs
new file mode 100644 (file)
index 0000000..73805bf
--- /dev/null
@@ -0,0 +1,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
index 7aae9a0..9fa50dd 100644 (file)
@@ -222,4 +222,5 @@ test('T5700', extra_clean(['T5700a.hi','T5700a.o']),
 test('T5721', normal, compile, ['-v0'])
 test('T1541', normal, compile, ['-v0'])
 test('T5883', normal, compile, ['-v0 -dsuppress-uniques -ddump-splices'])
+test('T5882', normal, compile, ['-v0'])