[commit: ghc] master: Test #8031 in th/T8031 (5c35415)
git at git.haskell.org
git at git.haskell.org
Mon Nov 24 20:26:02 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/5c3541548e441456ca6a0dd62caf8acd7fc5cf33/ghc
>---------------------------------------------------------------
commit 5c3541548e441456ca6a0dd62caf8acd7fc5cf33
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Mon Nov 24 15:24:03 2014 -0500
Test #8031 in th/T8031
>---------------------------------------------------------------
5c3541548e441456ca6a0dd62caf8acd7fc5cf33
testsuite/tests/th/T8031.hs | 14 ++++++++++++++
testsuite/tests/th/all.T | 1 +
2 files changed, 15 insertions(+)
diff --git a/testsuite/tests/th/T8031.hs b/testsuite/tests/th/T8031.hs
new file mode 100644
index 0000000..e71f347
--- /dev/null
+++ b/testsuite/tests/th/T8031.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TemplateHaskell, RankNTypes, DataKinds, TypeOperators, PolyKinds,
+ GADTs #-}
+
+module T8031 where
+
+import Data.Proxy
+
+data SList :: [k] -> * where
+ SCons :: Proxy h -> Proxy t -> SList (h ': t)
+
+$( [d| foo :: forall (a :: k). Proxy a
+ -> forall (b :: [k]). Proxy b
+ -> SList (a ': b)
+ foo a b = SCons a b |] )
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 60b6089..8656fcb 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -347,3 +347,4 @@ test('T7484', normal, compile_fail, ['-v0'])
test('T1476', normal, compile, ['-v0'])
test('T1476b', normal, compile_fail, ['-v0'])
test('T9824', normal, compile, ['-v0'])
+test('T8031', normal, compile, ['-v0'])
More information about the ghc-commits
mailing list