[Haskell-cafe] what I learnt from my first serious haskell
ithika at gmail.com
Mon Mar 19 10:04:02 EDT 2007
Quoth Henning Thielemann, nevermore,
> On Mon, 19 Mar 2007, Fawzi Mohamed wrote:
> > > A practice I've seen a lot in small- to mid-sized programs is to have
> > > a Types module that contains definitions of the types used in the
> > > program.
> > ok I will think about it
> I'd avoid that and suggest a more decentralized design, where each module
> contributes one main type and according functions.
That sounds like a kind of stateless object-oriented approach.
Interesting. I probably do something like that but have never really
formalised my thoughts on the matter. Nice one!
More information about the Haskell-Cafe