mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
whoops
This commit is contained in:
parent
37522ddc35
commit
fb1806f3e9
@ -30,6 +30,7 @@ runResource :: (Member (Lift IO) effects, PureEffects effects)
|
||||
-> Eff (Resource ': effects) a
|
||||
-> Eff effects a
|
||||
runResource handler = interpret (\(Resource fore aft go)
|
||||
-> liftIO (Exc.bracket (handler (runResource handler fore))
|
||||
-> liftIO (Exc.bracket
|
||||
(handler (runResource handler fore))
|
||||
(handler . runResource handler . aft)
|
||||
(handler . runResource handler . go)
|
||||
(handler . runResource handler . go)))
|
||||
|
Loading…
Reference in New Issue
Block a user