[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,
https://ghc.haskell.org/trac/ghc/ticket/2401
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.
Cheers,
Bertram
More information about the Haskell-Cafe
mailing list