Skip to content
Snippets Groups Projects
Commit 7c200a0f authored by sof's avatar sof
Browse files

[project @ 1999-02-09 10:12:24 by sof]

Updated + added Main.main regression test.
parent cd10502b
No related merge requests found
Showing
with 62 additions and 39 deletions
tcfail009.hs:3:
Couldn't match `Integer' against `Int'
Expected type: Integer
......@@ -6,5 +6,6 @@ tcfail009.hs:3:
In an expression with a type signature: 2 :: Integer
Compilation had errors
tcfail010.hs:3:
Ambiguous type variable(s) `t'
in the constraint `PrelBase.Num [t]'
arising from use of `PrelBase.+' at tcfail010.hs:3
in the constraint `Num [t]'
arising from use of `+' at tcfail010.hs:3
Compilation had errors
......
tcfail011.hs:3: Value not in scope: `y'
tcfail011.hs:3: Variable not in scope: `y'
Compilation had errors
......
tcfail012.hs:3:
Couldn't match `Bool' against `[t]'
Expected type: Bool
......@@ -6,5 +6,6 @@ tcfail012.hs:3:
In the right-hand side of a pattern binding: []
Compilation had errors
tcfail013.hs:4:
Couldn't match `[t]' against `Bool'
Expected type: [t]
......@@ -7,5 +7,6 @@ tcfail013.hs:4:
In an equation for function `f': f True = 2
Compilation had errors
tcfail014.hs:5:
Occurs check: cannot construct the infinite type: t = t -> _116
Occurs check: cannot construct the infinite type: t = t -> t1
Expected type: t
Inferred type: t -> _116
Inferred type: t -> t1
In the first argument of `z', namely `z'
In the right-hand side of an equation for `h': z z
Compilation had errors
tcfail015.hs:7:
No instance for `PrelBase.Num Bool'
No instance for `Num Bool'
arising from the literal `2' at tcfail015.hs:7
Compilation had errors
tcfail016.hs:9:
Couldn't match `Expr a' against `AnnExpr _97'
Expected type: Expr _97
Inferred type: AnnExpr _97
Couldn't match `Expr a' against `AnnExpr a'
Expected type: Expr a
Inferred type: AnnExpr a
In the first argument of `g', namely `e1'
In the first argument of `++', namely `(g e1)'
Compilation had errors
tcfail017.hs:11:
Could not deduce `C [a]'
(arising from an instance declaration at tcfail017.hs:11)
......@@ -8,5 +8,6 @@ tcfail017.hs:11:
When checking the superclasses of an instance declaration
Compilation had errors
tcfail018.hs:5:
Ambiguous type variable(s) `t'
in the constraint `PrelBase.Num [t]'
in the constraint `Num [t]'
arising from the literal `1' at tcfail018.hs:5
Compilation had errors
tcfail019.hs:19:
Could not deduce `C [a]'
(arising from an instance declaration at tcfail019.hs:19)
......@@ -6,7 +6,7 @@ tcfail019.hs:19:
Probable cause: missing `C [a]' in instance declaration context
or missing instance declaration for `C [a]'
When checking the superclasses of an instance declaration
tcfail019.hs:19:
Could not deduce `B [a]'
(arising from an instance declaration at tcfail019.hs:19)
......@@ -16,5 +16,6 @@ tcfail019.hs:19:
When checking the superclasses of an instance declaration
Compilation had errors
tcfail020.hs:11:
Could not deduce `A [a]'
(arising from an instance declaration at tcfail020.hs:11)
......@@ -8,5 +8,6 @@ tcfail020.hs:11:
When checking the superclasses of an instance declaration
Compilation had errors
tcfail021.hs:8:
Can't handle multiple methods defined by one pattern binding
(==, /=) = (\ x -> \ y -> ..., \ x -> \ y -> ...)
Compilation had errors
tcfail023.hs:1:
Duplicate or overlapping instance declarations
for `A B' at tcfail023.hs:11 and tcfail023.hs:14
tcfail023.hs:11:
Couldn't match `B' against `Bool'
Expected type: B
Inferred type: Bool
In the right-hand side of an equation for `op': True
tcfail023.hs:14:
Couldn't match `B' against `Bool'
Expected type: B
......@@ -16,5 +16,6 @@ tcfail023.hs:14:
In the right-hand side of an equation for `op': True
Compilation had errors
tcfail027.hs:3:
Cycle in class declarations:
`B' at tcfail027.hs:7
`A' at tcfail027.hs:4
Compilation had errors
tcfail028.hs:4:
Couldn't match `Type t' against `k -> *'
Expected kind: Type t
......@@ -7,5 +7,6 @@ tcfail028.hs:4:
In the newtype declaration for `A'
Compilation had errors
tcfail029.hs:6:
No instance for `PrelBase.Ord Foo'
arising from use of `PrelBase.>' at tcfail029.hs:6
No instance for `Ord Foo' arising from use of `>' at tcfail029.hs:6
Compilation had errors
......
tcfail030.hs:2:1: parse error on input: <EOF>
tcfail030.hs:0: Module `Main' must include a definition for `main'
Compilation had errors
tcfail031.hs:3:
Couldn't match `Bool' against `Char'
Expected type: Bool
......@@ -7,5 +7,6 @@ tcfail031.hs:3:
In the right-hand side of an equation for `f': if 'a' then 1 else 2
Compilation had errors
tcfail032.hs:14:
Inferred type is less polymorphic than expected
Quantified type variable `a' escapes
It is mentioned in the environment
The following variables in the environment mention `a'
x :: a -> Int
In an expression with expected type: forall
_97.
{PrelBase.Eq _97} =>
_97 -> Int
In an expression with expected type: forall a1.
{Eq a1} =>
a1 -> Int
In an expression with a type signature:
x :: forall a. (Eq a) => a -> Int
Compilation had errors
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment