On Wed, Jul 15, 2009 at 3:33 PM, Yair Chuchem<[email protected]> 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 _______________________________________________ Haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell
