[commit: ghc] master: Regression test for #12742 (c813d8c)

git at git.haskell.org git at git.haskell.org
Thu Sep 14 17:09:28 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/c813d8c9776b2c57ec90ab29e1cc0b687fbb9c34/ghc

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

commit c813d8c9776b2c57ec90ab29e1cc0b687fbb9c34
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Tue Aug 15 14:52:53 2017 -0400

    Regression test for #12742
    
    Location: dependent/should_compile/T12742


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

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

diff --git a/testsuite/tests/dependent/should_compile/T12742.hs b/testsuite/tests/dependent/should_compile/T12742.hs
new file mode 100644
index 0000000..baa3e2c
--- /dev/null
+++ b/testsuite/tests/dependent/should_compile/T12742.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeInType, RankNTypes, TypeFamilies #-}
+
+module T12742 where
+
+import Data.Kind
+
+type family F :: forall k2. (k1, k2)
+
+data T :: (forall k2. (Bool, k2)) -> Type
+
+type S = T F
diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T
index a135892..774cdce 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -26,3 +26,4 @@ test('T12442', normal, compile, [''])
 test('T13538', normal, compile, [''])
 test('T12176', normal, compile, [''])
 test('T14038', expect_broken(14038), compile, [''])
+test('T12742', normal, compile, [''])



More information about the ghc-commits mailing list