[Haskell-cafe] PrimMonad for Control.Monad.ST.Lazy?
chrisdone at gmail.com
Thu Apr 9 09:23:48 UTC 2015
I would hesitantly say that PrimMonad's types are all unboxed and this
means that any instance of it is inherently strict. Lazy state monad relies
on the laziness of the tuple it uses to hold the state, for example.
On 9 April 2015 at 04:49, Ken Takusagawa II <ken.takusagawa.2 at gmail.com>
> I notice that the strict ST monad has an instance for PrimMonad but the
> lazy ST monad does not. Is there a reason why, or is merely an oversight?
> (What I Am Really Trying To Do: get a purely lazy stream of random values
> out of mwc-random.)
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe