[Haskell-cafe] Re: Newbie question

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Jan 21 14:41:21 EST 2008

Hello Alexander,

Monday, January 21, 2008, 8:28:33 PM, you wrote:

> So, the function type "(Num a)=>Integer->a" means that return value
> of this function can be cast to any particular instance of class Num.

no! this means that the function really can return value of any type -
the calller (implicitly, via dictionary) says which type should be returned

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list