io-streams (opens new window) is Stream-based library that focuses on the Stream abstraction but for IO. It exposes two types:
io-streams
We can create a stream with makeInputStream :: IO (Maybe a) -> IO (InputStream a) (opens new window). Reading from a stream is performed using read :: InputStream a -> IO (Maybe a) (opens new window), where Nothing denotes an EOF:
makeInputStream :: IO (Maybe a) -> IO (InputStream a)
read :: InputStream a -> IO (Maybe a)
Nothing
Read Articlehttps://develop.horje.com/learn/1434/reference