[commit: ghc] wip/rae: Test #12938 in indexed-types/should_compile/T12938 (159294f)

git at git.haskell.org git at git.haskell.org
Tue Aug 22 18:39:09 UTC 2017


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/159294f66d8a54747a8a0bd8e2cdfbc3b3f06592/ghc

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

commit 159294f66d8a54747a8a0bd8e2cdfbc3b3f06592
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Tue Aug 15 14:56:31 2017 -0400

    Test #12938 in indexed-types/should_compile/T12938


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

159294f66d8a54747a8a0bd8e2cdfbc3b3f06592
 testsuite/tests/indexed-types/should_compile/T12938.hs | 8 ++++++++
 testsuite/tests/indexed-types/should_compile/all.T     | 1 +
 2 files changed, 9 insertions(+)

diff --git a/testsuite/tests/indexed-types/should_compile/T12938.hs b/testsuite/tests/indexed-types/should_compile/T12938.hs
new file mode 100644
index 0000000..1c8f47e
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/T12938.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TypeInType, TypeFamilies #-}
+
+module Bug where
+
+import GHC.Exts
+
+class HasRep a where
+  type Rep a :: TYPE r
diff --git a/testsuite/tests/indexed-types/should_compile/all.T b/testsuite/tests/indexed-types/should_compile/all.T
index dc166dc..950bdba 100644
--- a/testsuite/tests/indexed-types/should_compile/all.T
+++ b/testsuite/tests/indexed-types/should_compile/all.T
@@ -267,3 +267,4 @@ test('T13662', normal, compile, [''])
 test('T13705', normal, compile, [''])
 test('T12369', normal, compile, [''])
 test('T14045', normal, compile, [''])
+test('T12938', normal, compile, [''])



More information about the ghc-commits mailing list