summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/WildcardsInPatternAndExprSig.stderr
blob: d75a630d0417097c547d9b9fae54278e2e208a36 (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
62
63
64
65
66
67
68
69
70
71
72
73
74

WildcardsInPatternAndExprSig.hs:4:18: error:
    • Found type wildcard ‘_a’ standing for ‘_’
      Where: ‘_’ is a rigid type variable bound by
               the inferred type of bar :: Maybe [_] -> _ -> [_]
               at WildcardsInPatternAndExprSig.hs:4:1-68
      To use the inferred type, enable PartialTypeSignatures
    • In a pattern type signature: _a
      In the pattern: x :: _a
      In the pattern: [x :: _a]
    • Relevant bindings include
        bar :: Maybe [_] -> _ -> [_]
          (bound at WildcardsInPatternAndExprSig.hs:4:1)

WildcardsInPatternAndExprSig.hs:4:25: error:
    • Found type wildcard ‘_’ standing for ‘[_]’
      Where: ‘_’ is a rigid type variable bound by
               the inferred type of bar :: Maybe [_] -> _ -> [_]
               at WildcardsInPatternAndExprSig.hs:4:1-68
      To use the inferred type, enable PartialTypeSignatures
    • In a pattern type signature: _
      In the pattern: [x :: _a] :: _
      In the pattern: Just ([x :: _a] :: _)
    • Relevant bindings include
        bar :: Maybe [_] -> _ -> [_]
          (bound at WildcardsInPatternAndExprSig.hs:4:1)

WildcardsInPatternAndExprSig.hs:4:38: error:
    • Found type wildcard ‘_b’ standing for ‘_’
      Where: ‘_’ is a rigid type variable bound by
               the inferred type of bar :: Maybe [_] -> _ -> [_]
               at WildcardsInPatternAndExprSig.hs:4:1-68
      To use the inferred type, enable PartialTypeSignatures
    • In a pattern type signature: Maybe [_b]
      In the pattern: Just ([x :: _a] :: _) :: Maybe [_b]
      In an equation for ‘bar’:
          bar (Just ([x :: _a] :: _) :: Maybe [_b]) (z :: _c)
            = [x, z] :: [_d]
    • Relevant bindings include
        bar :: Maybe [_] -> _ -> [_]
          (bound at WildcardsInPatternAndExprSig.hs:4:1)

WildcardsInPatternAndExprSig.hs:4:49: error:
    • Found type wildcard ‘_c’ standing for ‘_’
      Where: ‘_’ is a rigid type variable bound by
               the inferred type of bar :: Maybe [_] -> _ -> [_]
               at WildcardsInPatternAndExprSig.hs:4:1-68
      To use the inferred type, enable PartialTypeSignatures
    • In a pattern type signature: _c
      In the pattern: z :: _c
      In an equation for ‘bar’:
          bar (Just ([x :: _a] :: _) :: Maybe [_b]) (z :: _c)
            = [x, z] :: [_d]
    • Relevant bindings include
        x :: _ (bound at WildcardsInPatternAndExprSig.hs:4:13)
        bar :: Maybe [_] -> _ -> [_]
          (bound at WildcardsInPatternAndExprSig.hs:4:1)

WildcardsInPatternAndExprSig.hs:4:66: error:
    • Found type wildcard ‘_d’ standing for ‘_’
      Where: ‘_’ is a rigid type variable bound by
               the inferred type of bar :: Maybe [_] -> _ -> [_]
               at WildcardsInPatternAndExprSig.hs:4:1-68
      To use the inferred type, enable PartialTypeSignatures
    • In an expression type signature: [_d]
      In the expression: [x, z] :: [_d]
      In an equation for ‘bar’:
          bar (Just ([x :: _a] :: _) :: Maybe [_b]) (z :: _c)
            = [x, z] :: [_d]
    • Relevant bindings include
        z :: _ (bound at WildcardsInPatternAndExprSig.hs:4:44)
        x :: _ (bound at WildcardsInPatternAndExprSig.hs:4:13)
        bar :: Maybe [_] -> _ -> [_]
          (bound at WildcardsInPatternAndExprSig.hs:4:1)