[commit: ghc] master: Test #9692 in th/T9692 (f681c32)
git at git.haskell.org
git at git.haskell.org
Tue Oct 21 13:21:27 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f681c3274c4481ab549508fa346892023bf9d9bb/ghc
>---------------------------------------------------------------
commit f681c3274c4481ab549508fa346892023bf9d9bb
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Mon Oct 20 15:11:59 2014 -0400
Test #9692 in th/T9692
>---------------------------------------------------------------
f681c3274c4481ab549508fa346892023bf9d9bb
testsuite/tests/th/T9692.hs | 17 +++++++++++++++++
testsuite/tests/th/T9692.stderr | 2 ++
testsuite/tests/th/all.T | 2 +-
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/testsuite/tests/th/T9692.hs b/testsuite/tests/th/T9692.hs
new file mode 100644
index 0000000..82e5951
--- /dev/null
+++ b/testsuite/tests/th/T9692.hs
@@ -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
index 0000000..e62c8c5
--- /dev/null
+++ b/testsuite/tests/th/T9692.stderr
@@ -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
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 7c030d0..2981202 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -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'])
More information about the ghc-commits
mailing list