File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/Control/Distributed/Process/Internal Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Library
54
54
distributed-static >= 0.2 && < 0.4 ,
55
55
rank1dynamic >= 0.1 && < 0.5 ,
56
56
syb >= 0.3 && < 0.8 ,
57
- exceptions >= 0.5 ,
57
+ exceptions >= 0.10 ,
58
58
containers >= 0.5 && < 0.6 ,
59
59
deepseq >= 1.3.0.1 && < 1.6
60
60
Exposed-modules : Control.Distributed.Process,
Original file line number Diff line number Diff line change @@ -366,6 +366,12 @@ instance MonadCatch Process where
366
366
lproc <- ask
367
367
liftIO $ catch (runLocalProcess lproc p) (runLocalProcess lproc . h)
368
368
instance MonadMask Process where
369
+ generalBracket acquire release inner = do
370
+ lproc <- ask
371
+ liftIO $
372
+ generalBracket (runLocalProcess lproc acquire)
373
+ (\ a e -> runLocalProcess lproc $ release a e)
374
+ (runLocalProcess lproc . inner)
369
375
mask p = do
370
376
lproc <- ask
371
377
liftIO $ mask $ \ restore ->
You can’t perform that action at this time.
0 commit comments