Test #9692 in th/T9692
authorRichard Eisenberg <eir@cis.upenn.edu>
Mon, 20 Oct 2014 19:11:59 +0000 (15:11 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Tue, 21 Oct 2014 13:20:44 +0000 (09:20 -0400)
testsuite/tests/th/T9692.hs [new file with mode: 0644]
testsuite/tests/th/T9692.stderr [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T9692.hs b/testsuite/tests/th/T9692.hs
new file mode 100644 (file)
index 0000000..82e5951
--- /dev/null
@@ -0,0 +1,17 @@
+{-# LANGUAGE TemplateHaskell, TypeFamilies, PolyKinds #-}
+
+module T9692 where
+
+import Language.Haskell.TH
+import Language.Haskell.TH.Syntax
+import Language.Haskell.TH.Ppr
+
+class C a where
+        data F a (b :: k) :: *
+
+instance C Int where
+        data F Int x = FInt x
+
+$( do info <- qReify (mkName "F")
+      runIO $ putStrLn $ pprint info
+      return [])
diff --git a/testsuite/tests/th/T9692.stderr b/testsuite/tests/th/T9692.stderr
new file mode 100644 (file)
index 0000000..e62c8c5
--- /dev/null
@@ -0,0 +1,2 @@
+data family T9692.F (a_0 :: k_1) (b_2 :: k_3) :: *
+data instance T9692.F GHC.Types.Int x_4 = T9692.FInt x_4
index 7c030d0..2981202 100644 (file)
@@ -330,4 +330,4 @@ test('T8932', normal, compile_fail, ['-v0'])
 test('T8987', normal, compile_fail, ['-v0'])
 test('T7241', normal, compile_fail, ['-v0'])
 test('T9199', normal, compile, ['-v0'])
-
+test('T9692', normal, compile, ['-v0'])