99
1010module Streamly.Internal.Console.Stdio
1111 (
12- -- * Streams
12+ -- * Singleton APIs
13+ -- getChunk
14+ -- , putChunk
15+
16+ -- * Stream reads
1317 read
14- , readChars
18+ -- , readWith -- buffer
1519 , readChunks
16- -- , getChunksLn
17- -- , getStringsWith -- get strings using the supplied decoding
18- -- , getStrings -- get strings of complete chars,
19- -- leave any partial chars for next string
20- -- , getStringsLn -- get lines decoded as char strings
20+ -- , readChunksWith -- buffer
21+ -- , readChunksLn -- chunks with line buffering -- repeatM Text.getLine
22+
23+ -- -- ** Encoding specific
24+ -- , readCharsWith
25+ -- , readStringsLnWith
26+
27+ -- ** UTF-8 decoded
28+ , readChars
29+ -- , readStringsLn -- strings with line buffering -- repeatM getLine
2130
2231 -- * Unfolds
2332 , reader
@@ -31,11 +40,18 @@ module Streamly.Internal.Console.Stdio
3140
3241 -- * Stream writes
3342 , putBytes -- Buffered (32K)
34- , putChars
3543 , putChunks -- Unbuffered
44+
45+ -- ** Encoding specific
46+ -- , putCharsWith
3647 , putStringsWith
48+ -- , putStringsLnWith
49+
50+ -- ** UTF-8 encoded
51+ , putChars
3752 , putStrings
3853 , putStringsLn
54+ -- , putChunksLn
3955 )
4056where
4157
@@ -193,7 +209,7 @@ putChunks = Handle.putChunks stdout
193209-- folds as well as unfolds/streams. Non-backtracking (one-to-one, one-to-many,
194210-- filters, reducers) transformations may be easy so we can possibly start with
195211-- those.
196- --
212+
197213-- | Write a stream of strings to standard output using the supplied encoding.
198214-- Output is flushed to the device for each string.
199215--
0 commit comments