[Haskell-beginners] interface/abstract class: what is the haskell way?

Emmanuel Touzery etouzery at gmail.com
Sat Feb 9 08:39:43 CET 2013


> > Here there is an "interface", the record of functions. But each module
must
> > basically define a function returning that record. Sure, the module must
> > implement that function, the same as you must implement it in OO
languages,
> > but each module can also make up its mind for the name of the function.
>
> You could also name the classes implementing the interface in any way,
> but will probably choose telling und helpful names.

Right, in an OO language i name the subclass, here the function. I was
thinking the way i was because i import those modules qualified so the
module name already gives me a description.

Thank you!

Emmanuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130209/73184f13/attachment-0001.htm>


More information about the Beginners mailing list