summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/WildcardInstantiations.stderr
blob: ddbb9e2b6c457c63c80bf16bc482b8cd00aaa694 (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

WildcardInstantiations.hs:5:14: error:
    • Found type wildcard ‘_a’ standing for ‘a’
      Where: ‘a’ is a rigid type variable bound by
               the inferred type of foo :: (Enum a, Show a) => a -> String
               at WildcardInstantiations.hs:6:1
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature:
        foo :: (Show _a, _) => _a -> _
    • Relevant bindings include
        foo :: a -> String (bound at WildcardInstantiations.hs:6:1)

WildcardInstantiations.hs:5:18: error:
    Found constraint wildcard ‘_’ standing for ‘Enum a’
    To use the inferred type, enable PartialTypeSignatures
    In the type signature:
      foo :: (Show _a, _) => _a -> _

WildcardInstantiations.hs:5:30: error:
    • Found type wildcard ‘_’ standing for ‘String’
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature:
        foo :: (Show _a, _) => _a -> _
    • Relevant bindings include
        foo :: a -> String (bound at WildcardInstantiations.hs:6:1)

WildcardInstantiations.hs:8:8: error:
    • Found type wildcard ‘_’ standing for ‘t1’
      Where: ‘t1’ is a rigid type variable bound by
               the inferred type of bar :: t1 -> (t1 -> t) -> t
               at WildcardInstantiations.hs:9:1
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature:
        bar :: _ -> _ -> _
    • Relevant bindings include
        bar :: t1 -> (t1 -> t) -> t
          (bound at WildcardInstantiations.hs:9:1)

WildcardInstantiations.hs:8:13: error:
    • Found type wildcard ‘_’ standing for ‘t1 -> t’
      Where: ‘t’ is a rigid type variable bound by
               the inferred type of bar :: t1 -> (t1 -> t) -> t
               at WildcardInstantiations.hs:9:1
             ‘t1’ is a rigid type variable bound by
               the inferred type of bar :: t1 -> (t1 -> t) -> t
               at WildcardInstantiations.hs:9:1
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature:
        bar :: _ -> _ -> _
    • Relevant bindings include
        bar :: t1 -> (t1 -> t) -> t
          (bound at WildcardInstantiations.hs:9:1)

WildcardInstantiations.hs:8:18: error:
    • Found type wildcard ‘_’ standing for ‘t’
      Where: ‘t’ is a rigid type variable bound by
               the inferred type of bar :: t1 -> (t1 -> t) -> t
               at WildcardInstantiations.hs:9:1
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature:
        bar :: _ -> _ -> _
    • Relevant bindings include
        bar :: t1 -> (t1 -> t) -> t
          (bound at WildcardInstantiations.hs:9:1)