| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
UnliftIO.Streams.Internal
Synopsis
- data InputStream a = InputStream {}
Documentation
data InputStream a #
An InputStream generates values of type c in the IO monad.
Two primitive operations are defined on InputStream:
reads a value from the stream, where "end of stream" is signaled byread::InputStreamc ->IO(Maybec)readreturningNothing."pushes back" a value to the stream.unRead:: c ->InputStreamc ->IO()
It is intended that InputStreams obey the following law:
unReadc stream >>readstream ===return(Justc)