tc141.stderr 1.88 KB
Newer Older
1 2 3 4 5 6 7 8 9

tc141.hs:11:12: error:
    • You cannot bind scoped type variable ‘a’
        in a pattern binding signature
    • In the pattern: p :: a
      In the pattern: (p :: a, q :: a)
      In a pattern binding: (p :: a, q :: a) = x

tc141.hs:11:31: error:
10
    • Couldn't match expected type ‘a2’ with actual type ‘a’
11
      ‘a2’ is a rigid type variable bound by
12
        an expression type signature:
13
          forall a2. a2
14
        at tc141.hs:11:34
15 16 17
      ‘a’ is a rigid type variable bound by
        the inferred type of f :: (a, a) -> (a1, a)
        at tc141.hs:11:1-37
18 19 20 21
    • In the expression: q :: a
      In the expression: (q :: a, p)
      In the expression: let (p :: a, q :: a) = x in (q :: a, p)
    • Relevant bindings include
22 23 24 25
        p :: a (bound at tc141.hs:11:12)
        q :: a (bound at tc141.hs:11:17)
        x :: (a, a) (bound at tc141.hs:11:3)
        f :: (a, a) -> (a1, a) (bound at tc141.hs:11:1)
26 27 28 29 30 31 32 33 34 35 36 37 38 39

tc141.hs:13:13: error:
    • You cannot bind scoped type variable ‘a’
        in a pattern binding signature
    • In the pattern: y :: a
      In a pattern binding: y :: a = a
      In the expression:
        let y :: a = a in
        let
          v :: a
          v = b
        in v

tc141.hs:15:18: error:
40 41
    • Couldn't match expected type ‘a1’ with actual type ‘p1’
      ‘a1’ is a rigid type variable bound by
42
        the type signature for:
43
          v :: forall a1. a1
44
        at tc141.hs:14:14-19
45 46
      ‘p1’ is a rigid type variable bound by
        the inferred type of g :: p -> p1 -> a
47
        at tc141.hs:(13,1)-(16,13)
48 49 50 51 52 53 54 55
    • In the expression: b
      In an equation for ‘v’: v = b
      In the expression:
        let
          v :: a
          v = b
        in v
    • Relevant bindings include
56 57 58
        v :: a1 (bound at tc141.hs:15:14)
        b :: p1 (bound at tc141.hs:13:5)
        g :: p -> p1 -> a (bound at tc141.hs:13:1)