[commit: ghc] wip/T14880-accum: Test #14904 in dependent/should_compile/T14904 (e1f8b68)

git at git.haskell.org git at git.haskell.org
Tue Sep 4 07:21:53 UTC 2018


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

On branch  : wip/T14880-accum
Link       : http://ghc.haskell.org/trac/ghc/changeset/e1f8b6832fda181024ddd016f0d247d80286dd1f/ghc

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

commit e1f8b6832fda181024ddd016f0d247d80286dd1f
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Mon Apr 2 15:53:42 2018 -0400

    Test #14904 in dependent/should_compile/T14904


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

e1f8b6832fda181024ddd016f0d247d80286dd1f
 testsuite/tests/dependent/should_compile/T14904.hs | 11 +++++++++++
 testsuite/tests/dependent/should_compile/all.T     |  1 +
 2 files changed, 12 insertions(+)

diff --git a/testsuite/tests/dependent/should_compile/T14904.hs b/testsuite/tests/dependent/should_compile/T14904.hs
new file mode 100644
index 0000000..e61170e
--- /dev/null
+++ b/testsuite/tests/dependent/should_compile/T14904.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies, RankNTypes, TypeInType #-}
+
+module T14904 where
+
+import Data.Kind
+
+type family F (f :: forall a. g a) where
+  F (f :: forall a. g a) = Int
+
+type family F' f :: Type where
+  F' ((f :: forall a. g a) :: forall a. g a) = Int
diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T
index 418fba2..dc43651 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -54,3 +54,4 @@ test('DkNameRes', normal, compile, [''])
 test('T15346', normal, compile, [''])
 test('T15419', normal, compile, [''])
 test('T14066h', normal, compile, [''])
+test('T14904', expect_broken(14904), compile, [''])



More information about the ghc-commits mailing list