Skip to content

Commit

Permalink
doc example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kedashoe committed Feb 5, 2025
1 parent 6d3c14a commit 74cf3fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions effectful-core/src/Effectful/EarlyReturn/Dynamic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
-- to return early from. As example of the former, with the handler in @main@:
--
-- >>> :{
-- import Control.Monad (when)
-- import Effectful (Eff, IOE, liftIO, runEff, (:>))
-- import Effectful.Dispatch.Dynamic (HasCallStack)
-- :}
--
-- >>> :{
-- early1 :: forall es. (HasCallStack, IOE :> es, EarlyReturn Bool :> es) => Int -> Eff es Bool
-- early1 n = do
-- when (n > 10) $ do
Expand Down

0 comments on commit 74cf3fb

Please sign in to comment.