summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/T10045.stderr
blob: a18ef48b83804cb2bfaef41e5fb9c0c34f75e239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

T10045.hs:6:18: error:
    • Found type wildcard ‘_’ standing for ‘t1 -> Bool -> t2’
      Where: ‘t1’ is a rigid type variable bound by
               the inferred type of copy :: t1 -> Bool -> t2 at T10045.hs:7:10-34
             ‘t2’ is a rigid type variable bound by
               the inferred type of copy :: t1 -> Bool -> t2 at T10045.hs:7:10-34
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature: copy :: _
      In the expression:
        let
          copy :: _
          copy w from = copy w True
        in copy ws1 False
      In an equation for ‘foo’:
          foo (Meta ws1)
            = let
                copy :: _
                copy w from = copy w True
              in copy ws1 False
    • Relevant bindings include
        ws1 :: () (bound at T10045.hs:5:11)
        foo :: Meta -> t (bound at T10045.hs:5:1)