blob: 558ebcc4de8fd6ba9cf290f312c10f23bc0e1db2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
T22065.hs:10:30: warning: [GHC-88464] [-Wpartial-type-signatures (in -Wdefault)]
• Found type wildcard ‘_’ standing for ‘Foo’
• In an expression type signature: forall a. _
In the expression: Apply f x :: forall a. _
In an equation for ‘foo’:
foo
= Apply f x :: forall a. _
where
f :: [_] -> Int
f = length @[] @_
x :: [_]
x = mempty @[_]
• Relevant bindings include
f :: forall {w}. [w] -> Int (bound at T22065.hs:13:3)
x :: forall {w}. [w] (bound at T22065.hs:16:3)
foo :: Foo (bound at T22065.hs:10:1)
T22065.hs:12:9: warning: [GHC-88464] [-Wpartial-type-signatures (in -Wdefault)]
• Found type wildcard ‘_’ standing for ‘w’
Where: ‘w’ is a rigid type variable bound by
the inferred type of f :: [w] -> Int
at T22065.hs:13:3-19
• In the type signature: f :: [_] -> Int
In an equation for ‘foo’:
foo
= Apply f x :: forall a. _
where
f :: [_] -> Int
f = length @[] @_
x :: [_]
x = mempty @[_]
• Relevant bindings include
x :: forall {w}. [w] (bound at T22065.hs:16:3)
foo :: Foo (bound at T22065.hs:10:1)
T22065.hs:15:9: warning: [GHC-88464] [-Wpartial-type-signatures (in -Wdefault)]
• Found type wildcard ‘_’ standing for ‘w’
Where: ‘w’ is a rigid type variable bound by
the inferred type of x :: [w]
at T22065.hs:16:3-17
• In the type signature: x :: [_]
In an equation for ‘foo’:
foo
= Apply f x :: forall a. _
where
f :: [_] -> Int
f = length @[] @_
x :: [_]
x = mempty @[_]
• Relevant bindings include foo :: Foo (bound at T22065.hs:10:1)
|