[Haskell-cafe] OO idioms redux
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,
That's what I've typically ended up doing in my code.
More information about the Haskell-Cafe