streamly-core-0.1.0: Streaming, parsers, arrays and more
Copyright(c) 2021 Composewell Technologies
LicenseBSD-3-Clause
Maintainerstreamly@composewell.com
Stabilityreleased
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Streamly.Console.Stdio

Description

Combinators to work with standard input, output and error streams.

See also: Streamly.Internal.Console.Stdio

Synopsis

Unfolds (stdin)

reader :: MonadIO m => Unfold m () Word8 Source #

Unfold standard input into a stream of Word8.

chunkReader :: MonadIO m => Unfold m () (Array Word8) Source #

Unfolds standard input into a stream of Word8 arrays.

Write (stdout)

write :: MonadIO m => Fold m Word8 () Source #

Fold a stream of Word8 to standard output.

writeChunks :: MonadIO m => Fold m (Array Word8) () Source #

Fold a stream of Array Word8 to standard output.

Write (stderr)

writeErr :: MonadIO m => Fold m Word8 () Source #

Fold a stream of Word8 to standard error.

writeErrChunks :: MonadIO m => Fold m (Array Word8) () Source #

Fold a stream of Array Word8 to standard error.

Deprecated

read :: MonadIO m => Unfold m () Word8 Source #

Deprecated: Please use reader instead

readChunks :: MonadIO m => Unfold m () (Array Word8) Source #

Deprecated: Please use chunkReader instead