[commit: ghc] master: Test #10589 in typecheck/should_compile/T10589 (b218241)

git at git.haskell.org git at git.haskell.org
Sat Dec 26 21:02:52 UTC 2015


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

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

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

commit b218241d6ba8c1a8dff3e9dbb461dbbc1d2ab412
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Dec 26 13:04:44 2015 -0500

    Test #10589 in typecheck/should_compile/T10589


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

b218241d6ba8c1a8dff3e9dbb461dbbc1d2ab412
 testsuite/tests/typecheck/should_compile/T10589.hs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T10589.hs b/testsuite/tests/typecheck/should_compile/T10589.hs
new file mode 100644
index 0000000..5ba1c4f
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10589.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE LambdaCase, TypeFamilies #-}
+
+module T10589 where
+
+type family F a where
+  F a = Bool -> a
+
+foo = (\case True -> 5
+             False -> 6) :: F Int



More information about the ghc-commits mailing list