-cc004.hs:8:
- Ambiguous type variable(s) `a' in the constraint `Num a'
- arising from use of `+' at cc004.hs:8
- In the first argument of `return', namely `(a + 1)'
- In the right-hand side of a lambda abstraction: return (a + 1)
+Cannot generalise these overloadings (in a _ccall_):
+ PrelGHC.CReturnable a arising from the result of the _ccall_ to `f' at cc004.hs:8
+
+Cannot generalise these overloadings (in a _ccall_):
+ PrelGHC.CReturnable a arising from the result of the _ccall_ to `f' at cc004.hs:15
cc004.hs:8:
Ambiguous type variable(s) `a'
in the constraint `PrelGHC.CReturnable a'
arising from the result of the _ccall_ to `f' at cc004.hs:8
In the first argument of `thenADR', namely `_ccall_ f'
- In the right-hand side of an equation for `foo':
+ in the definition of function `foo':
(_ccall_ f) `thenADR` (\ a -> return (a + 1))
-cc004.hs:15:
+cc004.hs:8:
Ambiguous type variable(s) `a' in the constraint `Num a'
- arising from use of `+' at cc004.hs:15
+ arising from the literal `1' at cc004.hs:8
+ In the second argument of `(+)', namely `1'
In the first argument of `return', namely `(a + 1)'
- In the right-hand side of a lambda abstraction: return (a + 1)
cc004.hs:15:
Ambiguous type variable(s) `a'
in the constraint `PrelGHC.CReturnable a'
arising from the result of the _ccall_ to `f' at cc004.hs:15
In the first argument of `thenADR', namely `_ccall_ f'
- In the right-hand side of an equation for `bar':
+ in the definition of function `bar':
(_ccall_ f) `thenADR` (\ a -> return (a + 1))
+
+cc004.hs:15:
+ Ambiguous type variable(s) `a' in the constraint `Num a'
+ arising from the literal `1' at cc004.hs:15
+ In the second argument of `(+)', namely `1'
+ In the first argument of `return', namely `(a + 1)'