On Sunday 25 July 2010 14:47:41, Andrew Coppin wrote: > Daniel Fischer wrote: > > On Sunday 25 July 2010 14:12:03, Andrew Coppin wrote: > >> Isn't there a "default" declaration where you can specify type > >> defaulting? > > > > Yes, you can have one default declaration per module. > > Not a feature I ever use. I just vaguely remembered reading about it > somewhere... (No idea if it has any effect on GHCi though.) >
ghci ignores default declarations (but has extended defaulting rules), so at the ghci prompt, you always get Integer for a generic Num type. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
