[Haskell-beginners] Re: Integer by default.
Maciej Piechotka
uzytkownik2 at gmail.com
Thu Jun 24 04:54:49 EDT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20100624/7ce21d23/attachment.bin
More information about the Beginners
mailing list