[Haskell-cafe] Fun with the ST monad

Alexander Solla alex.solla at gmail.com
Fri Feb 25 00:01:25 CET 2011


On Thu, Feb 24, 2011 at 2:42 PM, Andrew Coppin
<andrewcoppin at btinternet.com>wrote:

>    Anybody have any hints on how to get around this?
>>
>> Use a lazy state monad?
>>
>
> That's not going to work. It still needs to read the input to determine
> which monadic action comes next, and hence what the final result will be. So
> whether it forces the result or not, it still has to scan the entire input
> before it can generate any output.
>
>


More information about the Haskell-Cafe mailing list