[Haskell-cafe] Newbie question

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


Hello Alexander,

Monday, January 21, 2008, 6:37:38 PM, you wrote:
> Hi, I try to undestand why this code dosen't work
>   f :: (Num a)=>Integer->a
>   f i = i

as for every beginner which tries to grok type classes, i recommend
you to read http://haskell.org/haskellwiki/OOP_vs_type_classes and
especially papers mentioned there in References section

also, i recommend you to subscribe to ru_declarative and ru_lambda
LiveJournal communities and read them back - several month ago i've
placed there simple explanation of differences between C++ templates,
OOP classes and Haskell type classes

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



More information about the Haskell-Cafe mailing list