Streaming IO
Streaming IO
Section titled “Streaming IO”io-streams is Stream-based library that focuses on the Stream abstraction but for IO. It exposes two types:
We can create a stream with makeInputStream :: IO (Maybe a) -> IO (InputStream a). Reading from a stream is performed using read :: InputStream a -> IO (Maybe a), where Nothing denotes an EOF: