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:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to