summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/hole_constraints.stderr
blob: b464547365880c84082c16484d33fa81c7958806 (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
52
53
54
55
56
57
58
59
60
61

hole_constraints.hs:8:6: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: a
      Where: ‘a’ is a rigid type variable bound by
               the type signature for:
                 f1 :: forall a. Eq a => a
               at hole_constraints.hs:7:1-15
    • In the expression: _
      In an equation for ‘f1’: f1 = _
    • Relevant bindings include
        f1 :: a (bound at hole_constraints.hs:8:1)
      Constraints include Eq a (from hole_constraints.hs:7:1-15)

hole_constraints.hs:12:6: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: a
      Where: ‘a’ is a rigid type variable bound by
               the type signature for:
                 f2 :: forall a. (Show a, Eq a) => a
               at hole_constraints.hs:11:1-25
    • In the expression: _
      In an equation for ‘f2’: f2 = _
    • Relevant bindings include
        f2 :: a (bound at hole_constraints.hs:12:1)
      Constraints include
        Show a (from hole_constraints.hs:11:1-25)
        Eq a (from hole_constraints.hs:11:1-25)

hole_constraints.hs:16:35: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: [a]
      Where: ‘a’ is a rigid type variable bound by
               the instance declaration at hole_constraints.hs:16:10-22
    • In the expression: _
      In an equation for ‘f3’: f3 = _
      In the instance declaration for ‘C [a]’
    • Relevant bindings include
        f3 :: [a] (bound at hole_constraints.hs:16:30)
      Constraints include Eq a (from hole_constraints.hs:16:10-22)

hole_constraints.hs:20:19: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: a
      Where: ‘a’ is a rigid type variable bound by
               the type signature for:
                 castWith :: forall a b. (a :~: b) -> a -> b
               at hole_constraints.hs:19:1-29
    • In the expression: _
      In an equation for ‘castWith’: castWith Refl x = _
    • Relevant bindings include
        x :: a (bound at hole_constraints.hs:20:15)
        castWith :: (a :~: b) -> a -> b (bound at hole_constraints.hs:20:1)
      Constraints include b ~ a (from hole_constraints.hs:20:10-13)

hole_constraints.hs:27:32: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: String
    • In the expression: _
      In a case alternative: AnyShow x -> _
      In the expression: case a of { AnyShow x -> _ }
    • Relevant bindings include
        x :: a (bound at hole_constraints.hs:27:27)
        a :: AnyShow (bound at hole_constraints.hs:27:5)
        foo :: AnyShow -> String (bound at hole_constraints.hs:27:1)
      Constraints include Show a (from hole_constraints.hs:27:19-27)