Hmm, I never knew that. Is that a GHC thing? Is it strictly necessary? Seems like it could be done in the Num instance for Integers, Ints, etc.
> Err, I'm not seeing the danger of thisI didn't at first, then I remembered:
> (+) :: forall a. (Num a) => a -> a -> a
> Doesn't this require the two parameters to be the same instance of Num?
1 + True
=
fromInteger 1 + True
And if we have Num for Bool, it type checks.
Thanks
Neil