<div class="gmail_quote">Hi Jason,<br><br>On Tue, Nov 15, 2011 at 12:08 PM, Jason Dusek <span dir="ltr">&lt;<a href="mailto:jason.dusek@gmail.com">jason.dusek@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Should I be annotating my functions with strictness, for the<br>
vector reference, for example? Should I be using STUArrays,<br>
instead?<br></blockquote><div><br>From <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.4.1.0/Control-Monad-ST-Safe.html">http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.4.1.0/Control-Monad-ST-Safe.html</a><br>

<br>    &quot;The &gt;&gt;= and &gt;&gt; operations are strict in the state (though not in values stored in the state).&quot;<br><br>which implies that<br><br>        modifySTRef counter (+1)<br><br>is too lazy.<br><br>-- Johan<br>

<br></div></div>