[commit: ghc] wip/generics-flip: testsuite: Add regression test for #11381 (8e1e52f)

git at git.haskell.org git at git.haskell.org
Mon Jul 18 13:57:13 UTC 2016


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

On branch  : wip/generics-flip
Link       : http://ghc.haskell.org/trac/ghc/changeset/8e1e52ffd0b05bd1f865ce0421a4cae957bf41a5/ghc

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

commit 8e1e52ffd0b05bd1f865ce0421a4cae957bf41a5
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jul 18 13:16:00 2016 +0200

    testsuite: Add regression test for #11381


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

8e1e52ffd0b05bd1f865ce0421a4cae957bf41a5
 testsuite/tests/typecheck/should_compile/T11381.hs | 10 ++++++++++
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 2 files changed, 11 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T11381.hs b/testsuite/tests/typecheck/should_compile/T11381.hs
new file mode 100644
index 0000000..9d4d731
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T11381.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TypeInType, TypeFamilies #-}
+module Kinds where
+
+import GHC.Types
+
+type family G (a :: Type) :: Type
+type instance G Int = Bool
+
+type family F (a :: Type) :: G a
+type instance F Int = True
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 7333ffb..995fa2a 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -531,3 +531,4 @@ test('T12067', extra_clean(['T12067a.hi', 'T12067a.o']),
      multimod_compile, ['T12067', '-v0'])
 test('T12185', normal, compile, [''])
 test('T12133', normal, compile, [''])
+test('T12381', normal, compile, [''])



More information about the ghc-commits mailing list