Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,248
Issues
4,248
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
395
Merge Requests
395
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0b3c3c81
Commit
0b3c3c81
authored
Apr 04, 2012
by
dimitris
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error message modifications following ghc-new-solver modifications
parent
02fb36f5
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
238 additions
and
237 deletions
+238
-237
testsuite/tests/gadt/T3169.stderr
testsuite/tests/gadt/T3169.stderr
+11
-11
testsuite/tests/gadt/T3651.stderr
testsuite/tests/gadt/T3651.stderr
+35
-21
testsuite/tests/indexed-types/should_compile/T3017.stderr
testsuite/tests/indexed-types/should_compile/T3017.stderr
+1
-1
testsuite/tests/indexed-types/should_compile/T3208b.stderr
testsuite/tests/indexed-types/should_compile/T3208b.stderr
+0
-12
testsuite/tests/indexed-types/should_fail/SimpleFail16.stderr
...suite/tests/indexed-types/should_fail/SimpleFail16.stderr
+11
-11
testsuite/tests/indexed-types/should_fail/T1900.stderr
testsuite/tests/indexed-types/should_fail/T1900.stderr
+4
-5
testsuite/tests/indexed-types/should_fail/T2664.stderr
testsuite/tests/indexed-types/should_fail/T2664.stderr
+10
-9
testsuite/tests/indexed-types/should_fail/T3330a.stderr
testsuite/tests/indexed-types/should_fail/T3330a.stderr
+22
-22
testsuite/tests/indexed-types/should_fail/T3330c.stderr
testsuite/tests/indexed-types/should_fail/T3330c.stderr
+4
-4
testsuite/tests/indexed-types/should_fail/T4272.stderr
testsuite/tests/indexed-types/should_fail/T4272.stderr
+6
-26
testsuite/tests/parser/should_fail/readFail003.stderr
testsuite/tests/parser/should_fail/readFail003.stderr
+36
-12
testsuite/tests/typecheck/should_compile/FD2.stderr
testsuite/tests/typecheck/should_compile/FD2.stderr
+25
-25
testsuite/tests/typecheck/should_compile/FD3.stderr
testsuite/tests/typecheck/should_compile/FD3.stderr
+13
-13
testsuite/tests/typecheck/should_compile/T2494.stderr
testsuite/tests/typecheck/should_compile/T2494.stderr
+24
-24
testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr
...suite/tests/typecheck/should_fail/FrozenErrorTests.stderr
+2
-2
testsuite/tests/typecheck/should_fail/T1899.stderr
testsuite/tests/typecheck/should_fail/T1899.stderr
+9
-11
testsuite/tests/typecheck/should_fail/T3950.stderr
testsuite/tests/typecheck/should_fail/T3950.stderr
+4
-7
testsuite/tests/typecheck/should_fail/tcfail072.stderr
testsuite/tests/typecheck/should_fail/tcfail072.stderr
+2
-3
testsuite/tests/typecheck/should_fail/tcfail153.stderr
testsuite/tests/typecheck/should_fail/tcfail153.stderr
+5
-3
testsuite/tests/typecheck/should_fail/tcfail201.stderr
testsuite/tests/typecheck/should_fail/tcfail201.stderr
+14
-15
No files found.
testsuite/tests/gadt/T3169.stderr
View file @
0b3c3c81
T3169.hs:13:
13
:
Could not deduce (
elt ~ Map b elt
)
T3169.hs:13:
22
:
Could not deduce (
Map a ~ MP a b
)
from the context (Key a, Key b)
bound by the instance declaration at T3169.hs:10:10-36
`elt' is a rigid type variable bound by
the type signature for
lookup :: (a, b) -> Map (a, b) elt -> Maybe elt
at T3169.hs:12:3
Expected type: Maybe (Map b elt)
Actual type: Maybe elt
In the return type of a call of `lookup'
Expected type: Map a (Map b elt)
Actual type: Map (a, b) elt
In the second argument of `lookup', namely `m'
In the expression: lookup a m :: Maybe (Map b elt)
In the expression:
case lookup a m :: Maybe (Map b elt) of {
Just (m2 :: Map b elt) -> lookup b m2 :: Maybe elt }
T3169.hs:13:22:
Could not deduce (
Map a ~ MP a b
)
Could not deduce (
elt ~ Map b elt
)
from the context (Key a, Key b)
bound by the instance declaration at T3169.hs:10:10-36
Expected type: Map a elt
`elt' is a rigid type variable bound by
the type signature for
lookup :: (a, b) -> Map (a, b) elt -> Maybe elt
at T3169.hs:12:3
Expected type: Map a (Map b elt)
Actual type: Map (a, b) elt
In the second argument of `lookup', namely `m'
In the expression: lookup a m :: Maybe (Map b elt)
...
...
testsuite/tests/gadt/T3651.stderr
View file @
0b3c3c81
T3651.hs:11:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe1'
In the pattern: U
In an equation for `unsafe1': unsafe1 B U = ()
T3651.hs:14:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe2'
In the pattern: U
In an equation for `unsafe2': unsafe2 B U = ()
T3651.hs:17:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe3'
In the pattern: U
In an equation for `unsafe3': unsafe3 B U = True
T3651.hs:11:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe1'
In the pattern: U
In an equation for `unsafe1': unsafe1 B U = ()
T3651.hs:11:15:
Couldn't match type `Bool' with `()'
Expected type: a
Actual type: ()
In the expression: ()
In an equation for `unsafe1': unsafe1 B U = ()
T3651.hs:14:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe2'
In the pattern: U
In an equation for `unsafe2': unsafe2 B U = ()
T3651.hs:14:15:
Couldn't match type `Bool' with `()'
Expected type: a
Actual type: ()
In the expression: ()
In an equation for `unsafe2': unsafe2 B U = ()
T3651.hs:17:11:
Couldn't match type `Bool' with `()'
Inaccessible code in
a pattern with constructor U :: Z (), in an equation for `unsafe3'
In the pattern: U
In an equation for `unsafe3': unsafe3 B U = True
testsuite/tests/indexed-types/should_compile/T3017.stderr
View file @
0b3c3c81
TYPE SIGNATURES
emptyL :: forall a. ListColl a
test2 :: forall c t t1.
(Num t
1, Num t
, Coll c, Elem c ~ (t, t1)) =>
(Num t
, Num t1
, Coll c, Elem c ~ (t, t1)) =>
c -> c
TYPE CONSTRUCTORS
class Coll c
...
...
testsuite/tests/indexed-types/should_compile/T3208b.stderr
View file @
0b3c3c81
...
...
@@ -12,15 +12,3 @@ T3208b.hs:15:10:
Actual type: OTerm a0
In the expression: fce (apply f)
In an equation for fce': fce' f = fce (apply f)
T3208b.hs:15:15:
Could not deduce (STerm a ~ OTerm a0)
from the context (OTerm a ~ STerm a, OBJECT a, SUBST a)
bound by the type signature for
fce' :: (OTerm a ~ STerm a, OBJECT a, SUBST a) => a -> c
at T3208b.hs:14:9-56
The type variable `a0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
In the first argument of `fce', namely `(apply f)'
In the expression: fce (apply f)
In an equation for fce': fce' f = fce (apply f)
testsuite/tests/indexed-types/should_fail/SimpleFail16.stderr
View file @
0b3c3c81
SimpleFail16.hs:10:12:
Couldn't match expected type `
p0 a0' with actual type `F ()'
The type variables `p0', `a0' are ambiguous
Possible cause: the monomorphism restriction applied to the following:
bar :: p0 a0 (bound at SimpleFail16.hs:10:1)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction
In the first argument of `foo', namely `(undefined :: F ())'
In the expression: foo (undefined :: F ())
In an equation for `bar': bar = foo (undefined :: F ())
SimpleFail16.hs:10:12:
Couldn't match expected type `
F ()' with actual type `p0 a0'
The type variables `p0', `a0' are ambiguous
Possible cause: the monomorphism restriction applied to the following:
bar :: p0 a0 (bound at SimpleFail16.hs:10:1)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction
In the first argument of `foo', namely `(undefined :: F ())'
In the expression: foo (undefined :: F ())
In an equation for `bar': bar = foo (undefined :: F ())
testsuite/tests/indexed-types/should_fail/T1900.stderr
View file @
0b3c3c81
T1900.hs:11:12:
No instance for (Num ())
arising from a use of `+'
No instance for (Num ()) arising from a use of `+'
Possible fix: add an instance declaration for (Num ())
In the expression: (+ 1)
In an equation for `trans': trans = (+ 1)
In the instance declaration for `Bug Int'
T1900.hs:14:
22
:
Could not deduce (Depend s
0 ~ Depend s
)
T1900.hs:14:
16
:
Could not deduce (Depend s
~ Depend s0
)
from the context (Bug s)
bound by the type signature for check :: Bug s => Depend s -> Bool
at T1900.hs:13:10-36
NB: `Depend' is a type function, and may not be injective
The type variable `s0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
In the
first argument of `trans', namely `d
'
In the
return type of a call of `trans
'
In the second argument of `(==)', namely `trans d'
In the expression: d == trans d
testsuite/tests/indexed-types/should_fail/T2664.stderr
View file @
0b3c3c81
T2664.hs:31:
33
:
Could not deduce (
Dual b ~ Dual
a)
T2664.hs:31:
52
:
Could not deduce (
b ~
a)
from the context (Connect a, Connect b)
bound by the instance declaration at T2664.hs:22:10-52
or from ((a :*: b) ~ Dual c, c ~ Dual (a :*: b))
...
...
@@ -8,12 +8,13 @@ T2664.hs:31:33:
newPChan :: ((a :*: b) ~ Dual c, c ~ Dual (a :*: b)) =>
IO (PChan (a :*: b), PChan c)
at T2664.hs:(23,5)-(31,87)
NB: `Dual' is a type function, and may not be injective
Expected type: PChan c
Actual type: PChan (Dual b :+: Dual a)
In the return type of a call of `E'
`b' is a rigid type variable bound by
the instance declaration at T2664.hs:22:10
`a' is a rigid type variable bound by
the instance declaration at T2664.hs:22:10
Expected type: Dual (Dual a)
Actual type: b
In the third argument of `pchoose', namely `newPChan'
In the first argument of `E', namely `(pchoose Right v newPChan)'
In the expression:
E (pchoose Right v newPChan) (pchoose Left v newPChan)
In the first argument of `return', namely
`(O $ takeMVar v,
E (pchoose Right v newPChan) (pchoose Left v newPChan))'
testsuite/tests/indexed-types/should_fail/T3330a.stderr
View file @
0b3c3c81
T3330a.hs:19:34:
Couldn't match type `s' with `(->) (s0 ix1 -> ix1)'
`s' is a rigid type variable bound by
the type signature for children :: s ix -> PF s r ix -> [AnyF s]
at T3330a.hs:18:13
Expected type: (s0 ix0 -> ix1) -> r ix1 -> Writer [AnyF s] (r ix1)
Actual type: s ix
In the first argument of `hmapM', namely `p'
In the first argument of `execWriter', namely `(hmapM p collect x)'
In the expression: execWriter (hmapM p collect x)
T3330a.hs:19:
36:
Couldn't match type `ix' with `r ix0 -> Writer [AnyF s0] (r ix0)'
`ix' is a rigid type variable bound by
the type signature for children :: s ix -> PF s r ix -> [AnyF s]
at T3330a.hs:18:13
Expected type:
s0 ix0 -> ix
Actual type:
s0 ix0 -> r ix0 -> Writer [AnyF s0] (r ix0)
In the
second argument of `hmapM', namely `collect'
In the first argument of `execWriter', namely `(hmapM p collect x)'
In the expression: execWriter (hmapM p collect x)
T3330a.hs:19:34:
Couldn't match type `s' with `(->) (s0 ix1 -> ix1)'
`s' is a rigid type variable bound by
the type signature for children :: s ix -> PF s r ix -> [AnyF s]
at T3330a.hs:18:13
Expected type: (s0 ix0 -> ix1) -> r ix1 -> Writer [AnyF s] (r ix1)
Actual type: s ix
In the first argument of `hmapM', namely `p'
In the first argument of `execWriter', namely `(hmapM p collect x)'
In the expression: execWriter (hmapM p collect x)
T3330a.hs:19:
44:
Couldn't match type `ix' with `r ix0 -> Writer [AnyF s0] (r ix0)'
`ix' is a rigid type variable bound by
the type signature for children :: s ix -> PF s r ix -> [AnyF s]
at T3330a.hs:18:13
Expected type:
PF s r (r ix0 -> Writer [AnyF s0] (r ix0))
Actual type:
PF s r ix
In the
third argument of `hmapM', namely `x'
In the first argument of `execWriter', namely `(hmapM p collect x)'
In the expression: execWriter (hmapM p collect x)
testsuite/tests/indexed-types/should_fail/T3330c.stderr
View file @
0b3c3c81
T3330c.hs:23:43:
Couldn't match kind `*
-> *' with `
*'
Expected type: Der ((->) x) (
t0
x)
Couldn't match kind `*
' with `* ->
*'
Expected type: Der ((->) x) (
f1
x)
Actual type: R f1
Kind incompatibility when matching types:
f1
:: * -> *
t0 x ::
*
Der ((->) x)
:: * -> *
R :: (* -> *) ->
*
In the first argument of `plug', namely `rf'
In the first argument of `Inl', namely `(plug rf df x)'
testsuite/tests/indexed-types/should_fail/T4272.stderr
View file @
0b3c3c81
T4272.hs:11:16:
Couldn't match type `TermFamily (TermFamily x0 x0)'
with `TermFamily x0'
NB: `TermFamily' is a type function, and may not be injective
The type variable `x0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Expected type: TermFamily x0 x0
Actual type: TermFamily a a
In the first argument of `prune', namely `t'
In the expression: prune t (terms (undefined :: TermFamily a a))
In an equation for `laws':
laws t = prune t (terms (undefined :: TermFamily a a))
T4272.hs:11:16:
Occurs check: cannot construct the infinite type:
x0 = TermFamily x0 x0
Expected type: TermFamily x0 x0
Actual type: TermFamily a a
In the first argument of `prune', namely `t'
In the expression: prune t (terms (undefined :: TermFamily a a))
In an equation for `laws':
laws t = prune t (terms (undefined :: TermFamily a a))
T4272.hs:11:19:
Could not deduce (a ~ TermFamily x0 x0)
T4272.hs:11:26:
Could not deduce (a ~ TermFamily a a)
from the context (TermLike a)
bound by the type signature for
laws :: TermLike a => TermFamily a a -> b
...
...
@@ -31,7 +8,10 @@ T4272.hs:11:19:
`a' is a rigid type variable bound by
the type signature for laws :: TermLike a => TermFamily a a -> b
at T4272.hs:10:16
In the return type of a call of `terms'
Expected type: TermFamily a (TermFamily a a)
Actual type: TermFamily a a
In the first argument of `terms', namely
`(undefined :: TermFamily a a)'
In the second argument of `prune', namely
`(terms (undefined :: TermFamily a a))'
In the expression: prune t (terms (undefined :: TermFamily a a))
testsuite/tests/parser/should_fail/readFail003.stderr
View file @
0b3c3c81
readFail003.hs:4:27:
Occurs check: cannot construct the infinite type:
t0 = (t0, [a0], [a1])
In the expression: a
In a pattern binding:
~(a, b, c)
| nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
readFail003.hs:4:27:
Occurs check: cannot construct the infinite type:
t0 = (t0, [a0], [a1])
In the expression: a
In a pattern binding:
~(a, b, c)
| nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
readFail003.hs:5:27:
Occurs check: cannot construct the infinite type:
t0 = (t0, [a0], [a1])
In the expression: a
In a pattern binding:
~(a, b, c)
| nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
readFail003.hs:6:27:
Occurs check: cannot construct the infinite type:
t0 = (t0, [a0], [a1])
In the expression: a
In a pattern binding:
~(a, b, c)
| nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
testsuite/tests/typecheck/should_compile/FD2.stderr
View file @
0b3c3c81
FD2.hs:26:3
6:
Could not deduce (e
~ e1)
from the context (Foldable a)
bound by the class declaration for `Foldable'
at FD2.hs:(17,1)-(26,39)
or from (Elem a e)
bound by the type signature for
foldr1 :: Elem a e => (e -> e -> e) -> a -> e
at FD2.hs:21:13-47
or from (Elem a e1)
bound by the type signature for
mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1
at FD2.hs:24:18-54
`e
' is a rigid type variable bound by
the type signature for
foldr1 :: Elem a e => (e -> e -> e) -> a -> e
at FD2.hs:21:13
`e
1' is a rigid type variable bound by
the type signature for
mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1
at FD2.hs:24:18
In the
first argument of `f', namely `x'
In the first argument of `Just', namely `(f x y)'
In the expression: Just (f x y)
FD2.hs:26:3
4:
Could not deduce (e
1 ~ e)
from the context (Foldable a)
bound by the class declaration for `Foldable'
at FD2.hs:(17,1)-(26,39)
or from (Elem a e)
bound by the type signature for
foldr1 :: Elem a e => (e -> e -> e) -> a -> e
at FD2.hs:21:13-47
or from (Elem a e1)
bound by the type signature for
mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1
at FD2.hs:24:18-54
`e
1' is a rigid type variable bound by
the type signature for
mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1
at FD2.hs:24:18
`e
' is a rigid type variable bound by
the type signature for
foldr1 :: Elem a e => (e -> e -> e) -> a -> e
at FD2.hs:21:13
In the
return type of a call of `f'
In the first argument of `Just', namely `(f x y)'
In the expression: Just (f x y)
testsuite/tests/typecheck/should_compile/FD3.stderr
View file @
0b3c3c81
FD3.hs:15:15:
Couldn't match type `a' with `([Char], a)'
`a' is a rigid type variable bound by
the type signature for translate :: (String, a) -> A a
at FD3.hs:14:14
When using functional dependencies to combine
MkA a a,
arising from the dependency `a -> b'
in the instance declaration at FD3.hs:12:10
MkA (
[Char], a) a, arising from a use of `mkA' at FD3.hs:15:15-17
In the expression: mkA a
In an equation for `translate': translate a = mkA a
FD3.hs:15:15:
Couldn't match type `a' with `([Char], a)'
`a' is a rigid type variable bound by
the type signature for translate :: (String, a) -> A a
at FD3.hs:14:14
When using functional dependencies to combine
MkA a a,
arising from the dependency `a -> b'
in the instance declaration at FD3.hs:12:10
MkA (
String, a) a, arising from a use of `mkA' at FD3.hs:15:15-17
In the expression: mkA a
In an equation for `translate': translate a = mkA a
testsuite/tests/typecheck/should_compile/T2494.stderr
View file @
0b3c3c81
T2494.hs:15:
7:
Couldn't match type `
b' with `a'
`
b' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:1
4:16
`
a' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:1
3:16
Expected type: Maybe (m
b) -> Maybe (m b)
Actual type: Maybe (m
a) -> Maybe (m a)
In the first argument of `foo', namely `
f'
In the
expression: foo f (foo g x)
When checking the transformation rule "foo/foo"
T2494.hs:15:30:
Couldn't match type `b' with `a'
`b' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:14:16
`a' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:13:16
Expected type: Maybe (m
b) -> Maybe (m a)
Actual type: Maybe (m b) -> Maybe (m b)
In the second argument of `(.)', namely `g'
In the first argument of `foo', namely `(f . g)'
In the expression: foo (f . g) x
T2494.hs:15:
14:
Couldn't match type `
a' with `b'
`
a' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:1
3:16
`
b' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:1
4:16
Expected type: Maybe (m
a) -> Maybe (m a)
Actual type: Maybe (m
b) -> Maybe (m b)
In the first argument of `foo', namely `
g'
In the
second argument of `foo', namely `(foo g x)'
In the expression: foo f (foo g x)
T2494.hs:15:30:
Couldn't match type `b' with `a'
`b' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:14:16
`a' is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:13:16
Expected type: Maybe (m
a) -> Maybe (m a)
Actual type: Maybe (m b) -> Maybe (m b)
In the second argument of `(.)', namely `g'
In the first argument of `foo', namely `(f . g)'
In the expression: foo (f . g) x
testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr
View file @
0b3c3c81
...
...
@@ -40,7 +40,7 @@ FrozenErrorTests.hs:33:9:
In an equation for `test1': test1 = goo1 False undefined
FrozenErrorTests.hs:36:15:
Couldn't match type `
[Int]' with `Int
'
Couldn't match type `
Int' with `[Int]
'
Expected type: [[Int]]
Actual type: F [Int] Bool
In the first argument of `goo2', namely `(goo1 False undefined)'
...
...
@@ -48,7 +48,7 @@ FrozenErrorTests.hs:36:15:
In an equation for `test2': test2 = goo2 (goo1 False undefined)
FrozenErrorTests.hs:37:9:
Couldn't match type `
Int' with `[Int]
'
Couldn't match type `
[Int]' with `Int
'
Expected type: [[Int]]
Actual type: F [Int] Bool
In the expression: goo1 False (goo2 undefined)
...
...
testsuite/tests/typecheck/should_fail/T1899.stderr
View file @
0b3c3c81
T1899.hs:14:36:
Couldn't match type `a' with `Proposition a0'
`a' is a rigid type variable bound by
the type signature for transRHS :: [a] -> Int -> Constraint a
at T1899.hs:9:14
Expected type: [Proposition a0]
Actual type: [a]
In the first argument of `Auxiliary', namely `varSet'
In the first argument of `Prop', namely `(Auxiliary varSet)'
In the expression: Prop (Auxiliary varSet)
T1899.hs:12:29:
Couldn't match expected type `a' with actual type `Proposition a0'
`a' is a rigid type variable bound by
the type signature for transRHS :: [a] -> Int -> Constraint a
at T1899.hs:9:14
In the return type of a call of `Auxiliary'
In the first argument of `Prop', namely `(Auxiliary undefined)'
In the expression: Prop (Auxiliary undefined)
testsuite/tests/typecheck/should_fail/T3950.stderr
View file @
0b3c3c81
T3950.hs:15:13:
Couldn't match
type `Id p0 x0' with `Id p
'
Couldn't match
kind `* -> *' with `*
'
Expected type: w (Id p)
Actual type: Sealed (Id p0 x0)
Kind incompatibility when matching types:
w :: (* -> * -> *) -> *
Sealed :: (* -> *) -> *
In the first argument of `Just', namely rp'
In the expression: Just rp'
In an equation for `rp':
rp _
= Just rp'
where
rp' :: Sealed (Id p x)
rp' = undefined
testsuite/tests/typecheck/should_fail/tcfail072.stderr
View file @
0b3c3c81
tcfail072.hs:23:13:
Could not deduce (Ord p0)
arising from a use of `g'
Could not deduce (Ord q0) arising from a use of `g'
from the context (Ord p, Ord q)
bound by the type signature for
g :: (Ord p, Ord q) => AB p q -> Bool
at tcfail072.hs:22:6-38
The type variable `
p
0' is ambiguous
The type variable `
q
0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance Ord () -- Defined in `GHC.Classes'
...
...
testsuite/tests/typecheck/should_fail/tcfail153.stderr
View file @
0b3c3c81
tcfail153.hs:6:
9
:
Couldn't match
expected type `a' with actual type
`Bool'
tcfail153.hs:6:
7
:
Couldn't match
type `a' with
`Bool'
`a' is a rigid type variable bound by
the type signature for f :: a -> [a] at tcfail153.hs:5:6
In the first argument of `g', namely `x'
Expected type: [a]
Actual type: [Bool]
In the return type of a call of `g'
In the expression: g x
In an equation for `f':
f x
...
...
testsuite/tests/typecheck/should_fail/tcfail201.stderr
View file @
0b3c3c81
tcfail201.hs:18:28:
Couldn't match expected type `a' with actual type `HsDoc id0'
`a' is a rigid type variable bound by
the type signature for
gfoldl' :: (forall a1 b. c (a1 -> b) -> a1 -> c b)
-> (forall g. g -> c g) -> a -> c a
at tcfail201.hs:15:12
In the pattern: DocParagraph hsDoc
In a case alternative:
(DocParagraph hsDoc) -> z DocParagraph `k` hsDoc
In the expression:
case hsDoc of {
DocEmpty -> z DocEmpty
(DocParagraph hsDoc) -> z DocParagraph `k` hsDoc }
tcfail201.hs:17:27:
Couldn't match expected type `a' with actual type `HsDoc t0'
`a' is a rigid type variable bound by
the type signature for
gfoldl' :: (forall a1 b. c (a1 -> b) -> a1 -> c b)
-> (forall g. g -> c g) -> a -> c a
at tcfail201.hs:15:12
In the pattern: DocEmpty
In a case alternative: DocEmpty -> z DocEmpty
In the expression:
case hsDoc of {
DocEmpty -> z DocEmpty
(DocParagraph hsDoc) -> z DocParagraph `k` hsDoc }
thomie
@trac-thomie
mentioned in issue
#5763 (closed)
·
Jan 11, 2012
mentioned in issue
#5763 (closed)
mentioned in issue #5763
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment