tc141.stderr 1.75 KB
Newer Older
1

2
3
4
5
6
7
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
8

9
tc141.hs:11:31: error:
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
10
11
    • Couldn't match expected type ‘a1’ with actual type ‘a’
        because type variable ‘a1’ would escape its scope
12
13
      This (rigid, skolem) type variable is bound by
        an expression type signature:
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
14
          a1
15
16
17
        at tc141.hs:11:31-34
    • In the expression: q :: a
      In the expression: (q :: a, p)
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
18
      In the expression: let (p :: a, q :: a) = x in (q :: a, p)
19
20
21
22
    • Relevant bindings include
        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)
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
23
        f :: (a, a) -> (t, a) (bound at tc141.hs:11:1)
24

25
26
27
28
29
30
31
32
33
34
35
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
36

37
tc141.hs:15:18: error:
38
39
    • Couldn't match expected type ‘a1’ with actual type ‘r1’
        because type variable ‘a1’ would escape its scope
40
41
      This (rigid, skolem) type variable is bound by
        the type signature for:
42
          v :: a1
43
44
45
        at tc141.hs:14:14-19
    • In the expression: b
      In an equation for ‘v’: v = b
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
46
47
48
49
50
      In the expression:
        let
          v :: a
          v = b
        in v
51
    • Relevant bindings include
52
53
        v :: a1 (bound at tc141.hs:15:14)
        b :: r1 (bound at tc141.hs:13:5)
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
54
        g :: r -> r1 -> forall a. a (bound at tc141.hs:13:1)