[commit: ghc] master: Test #9151 in typecheck/should_compile/T9151. (67abfda)

git at git.haskell.org git at git.haskell.org
Thu Nov 20 21:41:27 UTC 2014


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

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

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

commit 67abfdacf5c93cccb0ab780b524591c916b21c3f
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Wed Nov 12 14:48:25 2014 -0500

    Test #9151 in typecheck/should_compile/T9151.
    
    This test case should pass right now -- the bug is fixed,
    presumably by #9200.


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

67abfdacf5c93cccb0ab780b524591c916b21c3f
 testsuite/tests/typecheck/should_compile/T9151.hs | 11 +++++++++++
 testsuite/tests/typecheck/should_compile/all.T    |  1 +
 2 files changed, 12 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T9151.hs b/testsuite/tests/typecheck/should_compile/T9151.hs
new file mode 100644
index 0000000..351c563
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T9151.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE PolyKinds, DataKinds, TypeFamilies, UndecidableInstances #-}
+
+module T9151 where
+
+import Data.Proxy
+
+class PEnum (kproxy :: KProxy a) where
+  type ToEnum (x :: a) :: Bool
+  type ToEnum x = TEHelper
+
+type TEHelper = ToEnum Int
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index ef830d1..ea7d343 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -425,3 +425,4 @@ test('T9708', normal, compile_fail, [''])
 test('T9404', normal, compile, [''])
 test('T9404b', normal, compile, [''])
 test('T7220', normal, compile, [''])
+test('T9151', normal, compile, [''])



More information about the ghc-commits mailing list