[commit: ghc] wip/T8584: Add test case for T8968 (6706978)

git at git.haskell.org git at git.haskell.org
Sun Nov 2 06:42:50 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T8584
Link       : http://ghc.haskell.org/trac/ghc/changeset/670697837e471c62e1d498d6fb2e8247b850be2d/ghc

>---------------------------------------------------------------

commit 670697837e471c62e1d498d6fb2e8247b850be2d
Author: Dr. ERDI Gergo <gergo at erdi.hu>
Date:   Sun Nov 2 14:35:49 2014 +0800

    Add test case for T8968


>---------------------------------------------------------------

670697837e471c62e1d498d6fb2e8247b850be2d
 testsuite/tests/patsyn/should_compile/T8968-1.hs | 8 ++++++++
 testsuite/tests/patsyn/should_compile/all.T      | 1 +
 2 files changed, 9 insertions(+)

diff --git a/testsuite/tests/patsyn/should_compile/T8968-1.hs b/testsuite/tests/patsyn/should_compile/T8968-1.hs
new file mode 100644
index 0000000..f4a1dc4
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T8968-1.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE GADTs, KindSignatures, PatternSynonyms #-}
+module ShouldCompile where
+
+data X :: (* -> *) -> * -> * where
+  Y :: f a -> X f (Maybe a)
+
+pattern type C a :: X Maybe (Maybe a)
+pattern C x = Y (Just x)
diff --git a/testsuite/tests/patsyn/should_compile/all.T b/testsuite/tests/patsyn/should_compile/all.T
index d851bc3..3b7bf27 100644
--- a/testsuite/tests/patsyn/should_compile/all.T
+++ b/testsuite/tests/patsyn/should_compile/all.T
@@ -10,3 +10,4 @@ test('incomplete', normal, compile, [''])
 test('export', normal, compile, [''])
 test('T8966', normal, compile, [''])
 test('T9023', normal, compile, [''])
+test('T8968-1', normal, compile, [''])



More information about the ghc-commits mailing list