Skip to content

Commit

Permalink
remove example
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Feb 12, 2024
1 parent b105730 commit 24d2457
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Juvix/Prelude/Effects/Output.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,3 @@ runOutputList = reinterpret runAccumList $ \_ -> \case
ignoreOutput :: Eff (Output o ': r) a -> Eff r a
ignoreOutput = interpret $ \_ -> \case
Output {} -> return ()

example1 :: IO ()
example1 =
runEff $
runOutputEff (\n -> putStrLn ("hey " <> show @Natural n)) (go 3)

go :: (Output Natural :> r, IOE :> r) => Natural -> Eff r ()
go = \case
0 -> return ()
n -> do
output n
liftIO (sleep 1)
go (pred n)

0 comments on commit 24d2457

Please sign in to comment.