[commit: ghc] ghc-7.10: Add missed test (uuugh) (89465bc)
git at git.haskell.org
git at git.haskell.org
Fri Mar 13 21:49:04 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/89465bc619b2aa8d841dfa4f5ae89dfb7501ec6e/ghc
>---------------------------------------------------------------
commit 89465bc619b2aa8d841dfa4f5ae89dfb7501ec6e
Author: Austin Seipp <austin at well-typed.com>
Date: Sat Mar 7 10:40:18 2015 -0600
Add missed test (uuugh)
Signed-off-by: Austin Seipp <austin at well-typed.com>
(cherry picked from commit 34ba68c2aeb6fb2d1ea25a1a5e45c233ed7efc9c)
>---------------------------------------------------------------
89465bc619b2aa8d841dfa4f5ae89dfb7501ec6e
testsuite/tests/typecheck/should_fail/T9999.hs | 13 +++++++++++++
testsuite/tests/typecheck/should_fail/T9999.stderr | 11 +++++++++++
2 files changed, 24 insertions(+)
diff --git a/testsuite/tests/typecheck/should_fail/T9999.hs b/testsuite/tests/typecheck/should_fail/T9999.hs
new file mode 100644
index 0000000..656e913
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9999.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE AutoDeriveTypeable, PolyKinds, TypeFamilies, StandaloneDeriving #-}
+
+module T9999 where
+
+import Data.Typeable
+
+data family F a
+
+class C a where
+ data F1 a
+ type F2 a
+
+main = typeRep (Proxy :: Proxy F) == typeRep (Proxy :: Proxy F1)
diff --git a/testsuite/tests/typecheck/should_fail/T9999.stderr b/testsuite/tests/typecheck/should_fail/T9999.stderr
new file mode 100644
index 0000000..6fa61d9
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9999.stderr
@@ -0,0 +1,11 @@
+
+T9999.hs:13:38:
+ No instance for (Typeable F1)
+ (maybe you haven't applied enough arguments to a function?)
+ arising from a use of ‘typeRep’
+ In the second argument of ‘(==)’, namely
+ ‘typeRep (Proxy :: Proxy F1)’
+ In the expression:
+ typeRep (Proxy :: Proxy F) == typeRep (Proxy :: Proxy F1)
+ In an equation for ‘main’:
+ main = typeRep (Proxy :: Proxy F) == typeRep (Proxy :: Proxy F1)
More information about the ghc-commits
mailing list