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

git at git.haskell.org git at git.haskell.org
Wed Aug 16 19:18:42 UTC 2017


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/763d153bde8e756f87a87bce8224b1043074a08a/ghc

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

commit 763d153bde8e756f87a87bce8224b1043074a08a
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


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

763d153bde8e756f87a87bce8224b1043074a08a
 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 359e7d5..9014423 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