blob: e49cac1577a3725eaad4609099343828f1f5f91a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
gadt7.hs:16:38:
Couldn't match expected type ‘t’ with actual type ‘r’
‘r’ is untouchable
inside the constraints: t1 ~ Int
bound by a pattern with constructor: K :: T Int,
in a case alternative
at gadt7.hs:16:33
‘r’ is a rigid type variable bound by
the inferred type of i1b :: T t1 -> r -> t at gadt7.hs:16:1
‘t’ is a rigid type variable bound by
the inferred type of i1b :: T t1 -> r -> t at gadt7.hs:16:1
Possible fix: add a type signature for ‘i1b’
In the expression: y1
In a case alternative: K -> y1
Relevant bindings include
y1 :: r (bound at gadt7.hs:16:16)
y :: r (bound at gadt7.hs:16:7)
i1b :: T t1 -> r -> t (bound at gadt7.hs:16:1)
|