Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the handling of nested orElse
Exposed by the following snippet, courtesy of Bas van Dijk and Patrick Palka on [email protected]: import Control.Concurrent.STM main = do x <- atomically $ do t <- newTVar 1 writeTVar t 2 ((readTVar t >> retry) `orElse` return ()) `orElse` return () readTVar t print x
- Loading branch information