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

Trac10045.hs:6:17: error:
    Found hole: _ :: t1 -> a -> t2
    Where: ‘t1’ is a rigid type variable bound by
                the inferred type of copy :: Num a => t1 -> a -> t2
                at Trac10045.hs:7:9
           ‘t2’ is a rigid type variable bound by
                the inferred type of copy :: Num a => t1 -> a -> t2
                at Trac10045.hs:7:9
           ‘a’ is a rigid type variable bound by
               the inferred type of copy :: Num a => t1 -> a -> t2
               at Trac10045.hs:7:9
    To use the inferred type, enable PartialTypeSignatures
    Relevant bindings include
      ws1 :: () (bound at Trac10045.hs:5:11)
      foo :: Meta -> t (bound at Trac10045.hs:5:1)
    In the type signature for ‘copy’: _
    In the expression:
      let
        copy :: _
        copy w from = copy w 1
      in copy ws1 1
    In an equation for ‘foo’:
        foo (Meta ws1)
          = let
              copy :: _
              copy w from = copy w 1
            in copy ws1 1

Trac10045.hs:7:9: error:
    No instance for (Num a)
    When checking that ‘copy’ has the inferred type
      copy :: forall t t1 a. t -> a -> t1
    Probable cause: the inferred type is ambiguous
    In the expression:
      let
        copy :: _
        copy w from = copy w 1
      in copy ws1 1
    In an equation for ‘foo’:
        foo (Meta ws1)
          = let
              copy :: _
              copy w from = copy w 1
            in copy ws1 1