[Haskell] ANNOUNCE: generator 0.5.1

Bas van Dijk v.dijk.bas at gmail.com
Thu Jul 16 03:18:28 EDT 2009


On Wed, Jul 15, 2009 at 3:33 PM, Yair Chuchem<yairchu at gmail.com> wrote:
> A new "generator" package has been uploaded to Hackage.
> It implements an alternative list monad transformer, a list class, and
> related functions.

I see you define ListT as a datatype:

http://hackage.haskell.org/packages/archive/generator/0.5.1/doc/html/src/Control-Monad-ListT.html#ListT

Can't you better define it as a newtype and so avoid the overhead of
constructing and deconstructing ListTs? Or do you need to worry about
strictness?

BTW, note that your ListT is also similar to my StreamT:

http://code.haskell.org/~basvandijk/code/stream/Control/Monad/StreamT.hs
 (not on Hackage)

regards,

Bas


More information about the Haskell mailing list