summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/holes.stderr
blob: a289c4c9524848ea9b34774302f6a3fa541c6a3b (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

holes.hs:3:5: warning: [-Wtyped-holes]
    • Found hole: _ :: t
      Where: ‘t’ is a rigid type variable bound by
               the inferred type of f :: t at holes.hs:3:1
    • In the expression: _
      In an equation for ‘f’: f = _
    • Relevant bindings include f :: t (bound at holes.hs:3:1)

holes.hs:6:7: warning: [-Wtyped-holes]
    • Found hole: _ :: Char
    • In the expression: _
      In an equation for ‘g’: g x = _
    • Relevant bindings include
        x :: Int (bound at holes.hs:6:3)
        g :: Int -> Char (bound at holes.hs:6:1)

holes.hs:8:5: warning: [-Wtyped-holes]
    • Found hole: _ :: [Char]
    • In the first argument of ‘(++)’, namely ‘_’
      In the expression: _ ++ "a"
      In an equation for ‘h’: h = _ ++ "a"
    • Relevant bindings include h :: [Char] (bound at holes.hs:8:1)

holes.hs:11:15: warning: [-Wtyped-holes]
    • Found hole: _ :: b0
      Where: ‘b0’ is an ambiguous type variable
    • In the second argument of ‘const’, namely ‘_’
      In the expression: const y _
      In an equation for ‘z’: z y = const y _
    • Relevant bindings include
        y :: [a] (bound at holes.hs:11:3)
        z :: [a] -> [a] (bound at holes.hs:11:1)