mirror of
https://github.com/haskell-effectful/effectful.git
synced 2024-11-23 06:22:28 +03:00
Small tweaks to call stacks
This commit is contained in:
parent
e778e23702
commit
749c72eb8e
@ -347,7 +347,7 @@ data Fail :: Effect where
|
||||
type instance DispatchOf Fail = Dynamic
|
||||
|
||||
instance Fail :> es => MonadFail (Eff es) where
|
||||
fail msg = withFrozenCallStack $ send (Fail msg)
|
||||
fail msg = send (Fail msg)
|
||||
|
||||
----------------------------------------
|
||||
-- IO
|
||||
|
@ -109,7 +109,7 @@ runNonDetRollback = reinterpret setup $ \env -> \case
|
||||
--
|
||||
-- @since 2.2.0.0
|
||||
emptyEff :: (HasCallStack, NonDet :> es) => Eff es a
|
||||
emptyEff = withFrozenCallStack $ send Empty
|
||||
emptyEff = withFrozenCallStack send Empty
|
||||
|
||||
-- | Specialized version of 'asum' with the 'HasCallStack' constraint for
|
||||
-- tracking purposes.
|
||||
|
Loading…
Reference in New Issue
Block a user