Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple, composable, and easy-to-use stream I/O for Haskell
Failed to load latest commit information.
src/System/IO Enable `FlexibleContexts` for S.I.S.I.Attoparsec
test contraMaybe + tests
.gitignore Fix build error when compiled against attoparsec 0.10.0.x.
.stylish-haskell.yaml Stylish no column limit. Imports into groups. Delete qualified explic…
CONTRIBUTORS Doc tweaks, add System.IO.Streams.Core.
LICENSE Update license.
README.md
Setup.hs ...
changelog.md Bump dependency on deepseq
io-streams.cabal Remove some trailing whitespace that made it into the .cabal.
runTestsAndCoverage.sh Add tests for the concurrent module (which I'd forgotten to test befo…

README.md

The io-streams library contains simple and easy to use primitives for I/O using streams. Based on simple types with one type parameter (InputStream a and OutputStream a), io-streams provides a basic interface to side-effecting input and output in IO monad with the following features:

  • three fundamental I/O primitives that anyone can understand: read :: InputStream a -> IO (Maybe a), unRead :: a -> InputStream a -> IO (), and write :: Maybe a -> OutputStream a -> IO ().

  • simple types and side-effecting IO operations mean straightforward and simple exception handling and resource cleanup using standard Haskell facilities like bracket.

  • code to transform files, handles, and sockets to streams

  • a variety of combinators for wrapping and transforming streams, including compression and decompression using zlib, controlling precisely how many bytes are read to or written from a socket, buffering output using blaze-builder, etc.

  • support for parsing from streams using attoparsec.

Something went wrong with that request. Please try again.