[Haskell-cafe] OO idioms redux

Graham Klyne GK at ninebynine.org
Sun Oct 17 05:26:29 EDT 2004


At 01:19 17/10/04 -0500, John Goerzen wrote:
> >  2. Try revisiting the original problem and thinking about how to
> >     solve it in a Haskellish way, rather than solving it in another
> >     language and then translating.
>
>Thats exactly what I'm trying to do here :-)  I've thought of having a
>type that basically stores a bunch of functions -- an implementation
>would simply provide an instance of that type with the functions,
>maybe.

That's what I've typically ended up doing in my code.

#g


------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact



More information about the Haskell-Cafe mailing list