[Haskell-cafe] STM and unsafePerformIO/bracket

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Tue Feb 4 14:06:11 UTC 2014

Rob Leslie wrote:
> I’ve run into a difficulty I’d appreciate some advice to solve.
[unsafePerformIO and bracket, within an STM transaction]

There's a long-standing bug report for this issue,


So the current situation is that bracket within unsafePerformIO
(and unsafeIOToSTM) and STM transactions don't mix. I'm a bit
surprised that this doesn't bite more people.



More information about the Haskell-Cafe mailing list