Control.Monad.Writer.Strict not as strict as expected

Henning Thielemann lemming at henning-thielemann.de
Thu Sep 15 23:12:00 CEST 2011


On Thu, 15 Sep 2011, Edward Kmett wrote:

> The Strict/Lazy writer split has nothing to do with the strictness of your monoid, but
> rather whether or not operations such as:
> 
> > fmap f ~(w, a) = (w, f a)

Doesn't this violate the fmap law

   fmap id = id

because

   fmap id undefined = (undefined, undefined)

?



More information about the Libraries mailing list