Re: [Haskell-cafe] Insert a laziness break into strict ST

2009-12-07 Thread Henning Thielemann
On Sun, 6 Dec 2009, Antoine Latter wrote: On Sun, Dec 6, 2009 at 5:46 PM, Henning Thielemann I hoped to get the first answer also for the second command. It seems that conversion from lazy to strict ST also removes laziness breaks. It seems that I have to stick to unsafeInterleaveIO, but I l

Re: [Haskell-cafe] Insert a laziness break into strict ST

2009-12-06 Thread Antoine Latter
On Sun, Dec 6, 2009 at 5:46 PM, Henning Thielemann wrote: > I have lot of ST actions that shall be bound strictly (they write to a > buffer), but somewhere between these actions I like to have a "laziness > break". I thought I could do this by temporarily switching to Lazy.ST, > but this does not

[Haskell-cafe] Insert a laziness break into strict ST

2009-12-06 Thread Henning Thielemann
I have lot of ST actions that shall be bound strictly (they write to a buffer), but somewhere between these actions I like to have a "laziness break". I thought I could do this by temporarily switching to Lazy.ST, but this does not work. It follows a simplified example Prelude> :module Control.Mon