blob: 7082d6e6cf8fc5cf9e31d2c19f7298aec3503827 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<interactive>:1:1: error:
• Ambiguous type variable ‘a0’ arising from a use of ‘foo’
prevents the constraint ‘(Num a0)’ from being solved.
Probable fix: use a type annotation to specify what ‘a0’ should be.
These potential instances exist:
instance Num Integer -- Defined in ‘GHC.Num’
instance Num Double -- Defined in ‘GHC.Float’
instance Num Float -- Defined in ‘GHC.Float’
...plus N others
...plus N instances involving out-of-scope types
(use -fprint-potential-instances to see them all)
• In the expression: foo
|