[commit: ghc] master: Test #12938 in indexed-types/should_compile/T12938 (b977630)

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


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

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

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

commit b9776308f69b6c6cca39c0cf05045405cdcfc16e
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


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

b9776308f69b6c6cca39c0cf05045405cdcfc16e
 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 32528c8..67ee1b7 100644
--- a/testsuite/tests/indexed-types/should_compile/all.T
+++ b/testsuite/tests/indexed-types/should_compile/all.T
@@ -267,5 +267,6 @@ test('T13662', normal, compile, [''])
 test('T13705', normal, compile, [''])
 test('T12369', normal, compile, [''])
 test('T14045', normal, compile, [''])
+test('T12938', normal, compile, [''])
 test('T14131', normal, compile, [''])
 test('T14162', normal, compile, [''])



More information about the ghc-commits mailing list