[project @ 2000-08-17 11:24:49 by rrt]
[ghc-hetmet.git] / ghc / tests / typecheck / should_fail / tcfail008.stderr
index b0e401c..3a731b7 100644 (file)
@@ -1,11 +1,15 @@
-tcfail008.hs:3: No instance for: `PrelBase.Num [taBU]'
-    arising from the literal 2 at tcfail008.hs:3
-tcfail008.hs:3: No instance for: `PrelBase.Num [taBU]'
-    arising from the literal 2 at tcfail008.hs:3
-tcfail008.hs:3: No instance for: `PrelBase.Num [PrelBase.Int]'
-    arising from the literal 2 at tcfail008.hs:3
+
+tcfail008.hs:3:
+    Ambiguous type variable(s) `t' in the constraint `Num [t]'
+    arising from the literal `2' at tcfail008.hs:3
+    In the second argument of `:', namely `2'
+    In the right-hand side of a pattern binding: 1 : 2
+
+tcfail008.hs:3:
+    Ambiguous type variable(s) `t' in the constraint `Num t'
+    arising from the literal `1' at tcfail008.hs:3
+    In the first argument of `:', namely `1'
+    In the right-hand side of a pattern binding: 1 : 2
 
 Compilation had errors
+