In GHCi, the following code works fine:
f1 :: Float f1 = f2 -- f2 :: Float f2 = 1/1
But in Hugs I get a type error - it wants to be double. When I uncomment a signature like f2, it works fine.
Shouldn't you care exactly about the type of output?
Is this a mistake in the arms?
I checked the type / , and the Double and Float - / instances work on Fractional s, and there is a Fractional instance for Double and Float , so this should not be a problem.
source share