Skip to content

Commit

Permalink
Small tweaks to call stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
arybczak committed Sep 29, 2024
1 parent e778e23 commit 749c72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion effectful-core/src/Effectful/Internal/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion effectful-core/src/Effectful/NonDet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 749c72e

Please sign in to comment.