bluefin-0.4.2.0: src/Bluefin/Pipes/Prelude.hs
-- | Reimplementation of the @pipes@ (@Pipes@) ecosystem in Bluefin.
--
-- You should not use this module. It will be deprecated and removed
-- in future versions.
--
-- This module is just an example of what you can do with Bluefin and
-- as such it should be obtained from
-- [@bluefin-examples@](https://github.com/tomjaguarpaw/bluefin/tree/master/bluefin-examples)
-- if you want it. Instead of using it directly you are recommended
-- to use
--
-- * 'Bluefin.Stream', 'Bluefin.Stream.yield'
-- * 'Bluefin.Consume', 'Bluefin.Consume.await'
-- * 'Bluefin.Stream.consumeStream'
-- * For advanced cases only, 'Bluefin.Coroutine',
-- 'Bluefin.Coroutine.yieldCoroutine' and
-- 'Bluefin.Coroutine.connectCoroutines'
--
-- See also "Bluefin.Pipes".
--
-- @
-- >>> 'Bluefin.Eff.runEff_' $ \\io -> 'runEffect' $ do
-- 'stdinLn' io >-> 'takeWhile'' (/= "quit") >-> 'stdoutLn' io
-- Test
-- Test
-- ABC
-- ABC
-- quit
-- "quit"
-- @
module Bluefin.Pipes.Prelude
( -- * Producers
stdinLn,
repeatM,
replicateM,
unfoldr,
-- * Consumers
stdoutLn,
mapM_,
print,
drain,
-- * Pipes
map,
mapM,
takeWhile',
)
where
import Bluefin.Internal.Pipes