[Haskell-cafe] Query regarding Type classes

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Oct 13 06:59:58 EDT 2008

Hello Arun,

Monday, October 13, 2008, 2:50:27 PM, you wrote:

> I agree that this does look more succinct... but what if I write some generic code for the
> in the render method of the Drawable class and package it into a library..

i recommend you to read http://haskell.org/haskellwiki/OOP_vs_type_classes
first and then look into http://haskell.org/haskellwiki/Library/Streams
 - it's a good example of extensible library written using type
 classes. later i've used this approach to write extensible library in
 C++ using templates (not classes)

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

More information about the Haskell-Cafe mailing list