
4 Feb
2014
4 Feb
'14
9:06 a.m.
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