Test Trac #8499
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 6 Nov 2013 08:33:25 +0000 (08:33 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 6 Nov 2013 08:33:25 +0000 (08:33 +0000)
testsuite/tests/th/T8499.hs [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T8499.hs b/testsuite/tests/th/T8499.hs
new file mode 100644 (file)
index 0000000..353bb9f
--- /dev/null
@@ -0,0 +1,12 @@
+{-# LANGUAGE TemplateHaskell, PolyKinds, DataKinds #-}
+{-# OPTIONS_GHC -Wall #-}
+
+module T8499 where
+
+import Language.Haskell.TH
+
+$( do TyConI (DataD _ _ [PlainTV tvb_a] _ _) <- reify ''Maybe
+      my_a <- newName "a"
+      return [TySynD (mkName "SMaybe")
+                     [KindedTV my_a (AppT (ConT ''Maybe) (VarT tvb_a))]
+                     (TupleT 0)] )
index e38297f..55c5a93 100644 (file)
@@ -302,4 +302,5 @@ test('T4364', normal, compile, ['-v0'])
 test('T8412', normal, compile_fail, ['-v0'])
 test('T7667', normal, compile, ['-v0'])
 test('T7667a', normal, compile_fail, ['-v0'])
-test('T8455', normal, compile, ['-v0'])
\ No newline at end of file
+test('T8455', normal, compile, ['-v0'])
+test('T8499', normal, compile, ['-v0'])