Copyright | (c) 2021 Composewell Technologies |
---|---|
License | BSD-3-Clause |
Maintainer | streamly@composewell.com |
Stability | released |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Combinators to work with standard input, output and error streams.
See also: Streamly.Internal.Console.Stdio
Synopsis
- reader :: MonadIO m => Unfold m () Word8
- chunkReader :: MonadIO m => Unfold m () (Array Word8)
- write :: MonadIO m => Fold m Word8 ()
- writeChunks :: MonadIO m => Fold m (Array Word8) ()
- writeErr :: MonadIO m => Fold m Word8 ()
- writeErrChunks :: MonadIO m => Fold m (Array Word8) ()
- read :: MonadIO m => Unfold m () Word8
- readChunks :: MonadIO m => Unfold m () (Array Word8)
Unfolds (stdin)
chunkReader :: MonadIO m => Unfold m () (Array Word8) Source #
Unfolds standard input into a stream of Word8
arrays.
Write (stdout)
writeChunks :: MonadIO m => Fold m (Array Word8) () Source #
Fold a stream of Array Word8
to standard output.
Write (stderr)
writeErrChunks :: MonadIO m => Fold m (Array Word8) () Source #
Fold a stream of Array Word8
to standard error.
Deprecated
readChunks :: MonadIO m => Unfold m () (Array Word8) Source #
Deprecated: Please use chunkReader
instead