Polished source code
This commit is contained in:
parent
f66ad20f0e
commit
3aa11fd21c
1 changed files with 1 additions and 1 deletions
|
@ -197,6 +197,6 @@ select as = Shell (\(FoldM step begin done) -> do
|
|||
-- | Acquire a `Protected` resource within a `Shell` in an exception-safe way
|
||||
with :: Protected a -> Shell a
|
||||
with resource = Shell (\(FoldM step begin done) -> do
|
||||
x <- begin
|
||||
x <- begin
|
||||
x' <- bracket (acquire resource) snd (\(a, _) -> step x a)
|
||||
done x' )
|
||||
|
|
Loading…
Reference in a new issue