[Haskell-cafe] Possible Improvements

Ketil Malde ketil+haskell at ii.uib.no
Mon Dec 3 04:48:33 EST 2007

"Johan Tibell" <johan.tibell at gmail.com> writes:

> It would be great if someone could exemplify these "rules of thumb",
> e.g. "Primitive types such as Int should be strict unless in the three
> canonical examples X, Y and Z." My strictness radar is still quite
> poor and I feel I can't make informed decisions on when I need to make
> something more strict or lazy.

I find that I often need to add strictness when:

 left thumb)  parsing [Char] into something more compact, i.e. almost
              all cases.
 right thumb) storing data into maps, especially when the values are produced by
              multiple updates - i.e. doing word frequency counts.

If I haven't seen further, it is by standing in the footprints of giants

More information about the Libraries mailing list