summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail174.stderr
blob: 5747a270eff9c64e2f068eb6843aed738c407ac7 (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

tcfail174.hs:9:5: error:
    • Couldn't match type: a0 -> a0
                     with: forall a. a -> a
      Expected: Capture (forall a. a -> a)
        Actual: Capture (a0 -> a0)
    • In the expression: Base id
      In an equation for ‘g’: g = Base id

tcfail174.hs:16:14: error:
    • Couldn't match type ‘a1’ with ‘a’
      Expected: Capture (forall x. x -> a)
        Actual: Capture (forall a. a -> a)
      ‘a1’ is a rigid type variable bound by
        the type a -> a
        at tcfail174.hs:16:1-14
      ‘a’ is a rigid type variable bound by
        the inferred type of h1 :: Capture a
        at tcfail174.hs:16:1-14
    • In the first argument of ‘Capture’, namely ‘g’
      In the expression: Capture g
      In an equation for ‘h1’: h1 = Capture g
    • Relevant bindings include
        h1 :: Capture a (bound at tcfail174.hs:16:1)

tcfail174.hs:19:14: error:
    • Couldn't match type ‘a’ with ‘b’
      Expected: Capture (forall x. x -> b)
        Actual: Capture (forall a. a -> a)
      ‘a’ is a rigid type variable bound by
        the type a -> a
        at tcfail174.hs:1:1
      ‘b’ is a rigid type variable bound by
        the type signature for:
          h2 :: forall b. Capture b
        at tcfail174.hs:18:1-15
    • In the first argument of ‘Capture’, namely ‘g’
      In the expression: Capture g
      In an equation for ‘h2’: h2 = Capture g
    • Relevant bindings include
        h2 :: Capture b (bound at tcfail174.hs:19:1)