I get the following error
Ambiguous type variable ‘a0’ arising from a use of ‘print’ prevents the constraint ‘(Show a0)’ from being solved."
when I type this simple expression into the winghci console:
(1.0 * (floor 5))/(1.0 * (floor 5))
I've read in other SO posts that you can't use the "/" division for integers, but here I'm trying to divide fractional numbers.
(/)
itself, but the fact thatfloor
will return anIntegral
type. – Willem Van Onsem