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

git at git.haskell.org git at git.haskell.org
Fri Jul 27 06:40:19 UTC 2018


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

On branch  : wip/T14880
Link       : http://ghc.haskell.org/trac/ghc/changeset/fc29fb511de397f61d6dce70e89f1eca149cc531/ghc

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

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

    Test #14904 in dependent/should_compile/T14904


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

fc29fb511de397f61d6dce70e89f1eca149cc531
 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 5874d2e..6574a00 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -32,3 +32,4 @@ test('T14720', normal, compile, [''])
 test('T14066a', normal, compile, [''])
 test('T14749', normal, compile, [''])
 test('T14991', normal, compile, [''])
+test('T14904', expect_broken(14904), compile, [''])



More information about the ghc-commits mailing list