mirror of
https://github.com/github/semantic.git
synced 2024-12-19 21:01:35 +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))
|
||||
(handler . runResource handler . aft)
|
||||
(handler . runResource handler . go)
|
||||
-> liftIO (Exc.bracket
|
||||
(handler (runResource handler fore))
|
||||
(handler . runResource handler . aft)
|
||||
(handler . runResource handler . go)))
|
||||
|
Loading…
Reference in New Issue
Block a user