blob: 69e850caf81a9b7d07f66d389336ec0f622f5b4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
T9222.hs:13:3: error:
• Couldn't match type ‘b0’ with ‘b’
‘b0’ is untouchable
inside the constraints: a ~ '(b0, c0)
bound by the type of the constructor ‘Want’:
(a ~ '(b0, c0)) => Proxy b0
at T9222.hs:13:3
‘b’ is a rigid type variable bound by
the type of the constructor ‘Want’:
forall i j (a :: (i, j)) (b :: i) (c :: j).
((a ~ '(b, c)) => Proxy b) -> Want a
at T9222.hs:13:3
Expected type: Proxy b0
Actual type: Proxy b
• In the ambiguity check for ‘Want’
To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
In the definition of data constructor ‘Want’
In the data type declaration for ‘Want’
|