Add missed test (uuugh)
authorAustin Seipp <austin@well-typed.com>
Sat, 7 Mar 2015 16:40:18 +0000 (10:40 -0600)
committerAustin Seipp <austin@well-typed.com>
Sat, 7 Mar 2015 16:40:18 +0000 (10:40 -0600)
Signed-off-by: Austin Seipp <austin@well-typed.com>
testsuite/tests/typecheck/should_fail/T9999.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T9999.stderr [new file with mode: 0644]

diff --git a/testsuite/tests/typecheck/should_fail/T9999.hs b/testsuite/tests/typecheck/should_fail/T9999.hs
new file mode 100644 (file)
index 0000000..656e913
--- /dev/null
@@ -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 (file)
index 0000000..ae7fa28
--- /dev/null
@@ -0,0 +1,11 @@
+
+T9999.hs:13:38:
+    No instance for (Typeable F1)
+      (maybe you haven't applied a function to enough arguments?)
+      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)