[Haskell-cafe] Type problems

Daniel Fischer daniel.is.fischer at web.de
Sun Jul 25 09:07:22 EDT 2010

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.

More information about the Haskell-Cafe mailing list