[Haskell-cafe] ST not strict enough?

Johan Tibell johan.tibell at gmail.com
Tue Nov 15 22:23:59 CET 2011

Hi Jason,

On Tue, Nov 15, 2011 at 12:08 PM, Jason Dusek <jason.dusek at gmail.com> wrote:

> Should I be annotating my functions with strictness, for the
> vector reference, for example? Should I be using STUArrays,
> instead?


    "The >>= and >> operations are strict in the state (though not in
values stored in the state)."

which implies that

     modifySTRef counter (+1)

is too lazy.

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111115/764a8398/attachment.htm>

More information about the Haskell-Cafe mailing list