
24 Jun
2010
24 Jun
'10
8:54 a.m.
On Wed, 2010-06-23 at 11:51 -0300, Felipe Lessa wrote:
On Wed, Jun 23, 2010 at 09:38:24PM +0800, Lyndon Maydwell wrote:
Is there a way to get the prelude functions to use Integer by default rather than Int?
In general, I think it is cleaner to use explicit type signatures instead of defaulting. Running GHC with -Wall will warn you whenever you default to something.
Cheers,
-- Felipe.
Also it helps a lot tracking type errors (and other errors are nearly non-existing in Haskell ;) ). Regards