Read a byte stream from standard input.
read = Handle.read stdin
read = Stream.unfold Stdio.reader ()Pre-release
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulestreamly-core-0.2.2Haskell2010
Read a byte stream from standard input.
read = Handle.read stdin
read = Stream.unfold Stdio.reader ()Pre-release
Read a character stream from Utf8 encoded standard input.
readChars = Unicode.decodeUtf8 Stdio.readPre-release
Read a stream of chunks from standard input. The maximum size of a single
chunk is limited to defaultChunkSize. The actual size read may be less
than defaultChunkSize.
readChunks = Handle.readChunks stdin
readChunks = Stream.unfold Stdio.chunkReader ()Pre-release
Unfold standard input into a stream of Word8.
Unfolds standard input into a stream of Word8 arrays.
Fold a stream of Word8 to standard output.
Fold a stream of Array Word8 to standard output.
Fold a stream of Word8 to standard error.
Fold a stream of Array Word8 to standard error.
Write a stream of bytes to standard output.
putBytes = Handle.putBytes stdout
putBytes = Stream.fold Stdio.writePre-release
Encode a character stream to Utf8 and write it to standard output.
putChars = Stdio.putBytes . Unicode.encodeUtf8Pre-release
Write a stream of chunks to standard output.
putChunks = Handle.putChunks stdout
putChunks = Stream.fold Stdio.writeChunksPre-release
Write a stream of strings to standard output using the supplied encoding. Output is flushed to the device for each string.
Pre-release
Write a stream of strings to standard output using UTF8 encoding. Output is flushed to the device for each string.
Pre-release
Like putStrings but adds a newline at the end of each string.
XXX This is not portable, on Windows we need to use "rn" instead.
Pre-release