mirror of
https://github.com/haskell-effectful/effectful.git
synced 2024-11-27 01:45:16 +03:00
Remove INLINABLE pragmas from catch and genericBracket
This commit is contained in:
parent
3f78b20c8d
commit
7c55fe0c8f
@ -211,7 +211,6 @@ instance E.MonadCatch (Eff es) where
|
||||
unEff m es `catch` \e -> do
|
||||
checkSizeEnv size es
|
||||
unEff (handler e) es
|
||||
{-# INLINABLE catch #-}
|
||||
|
||||
instance E.MonadMask (Eff es) where
|
||||
mask k = unsafeEff $ \es -> mask $ \restore ->
|
||||
@ -230,7 +229,6 @@ instance E.MonadMask (Eff es) where
|
||||
checkSizeEnv size es
|
||||
c <- unEff (release resource $ E.ExitCaseSuccess b) es
|
||||
pure (b, c)
|
||||
{-# INLINABLE generalBracket #-}
|
||||
|
||||
----------------------------------------
|
||||
-- Fail
|
||||
|
Loading…
Reference in New Issue
Block a user