blob: 045423ca0cc424a61198806f5665b215330aa8a9 (
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
|
Trac10045.hs:6:17: error:
Found type wildcard ‘_’ standing for ‘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
‘a’ 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
To use the inferred type, enable PartialTypeSignatures
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
Relevant bindings include
ws1 :: () (bound at Trac10045.hs:5:11)
foo :: Meta -> t (bound at Trac10045.hs:5: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
|