Streaming, parsers, arrays, serialization and more.
For upgrading to streamly-0.9.0+ please read the Streamly-0.9.0 upgrade guide.
Streamly is a standard library for Haskell that focuses on C-like performance, modular combinators, and streaming data flow model. Streamly consists of two packages: "streamly-core" and "streamly". streamly-core provides basic features, and depends only on GHC boot libraries (see note below), while streamly provides higher-level features like concurrency, time, lifted exceptions, and networking. For documentation, visit the Streamly website.
The streamly-core package provides the following functionality:
Streams as composable producers of a sequence of values.
Streams provide all the functionality provided by Haskell lists but in an effectful, streaming fashion with better performance.
Streams provide ListT and logic programming functionality as well.
Folds as composable stream consumers that reduce the streams to a single value or reduce segments of streams to transform the stream.
Parsers as more powerful, composable stream consumers supporting standard parser combinators with backtracking but in a streaming fashion.
Arrays with streaming interfaces providing high performance, modularity, and concise interface as all streaming operations can be performed on arrays.
Arrays can be immutable or mutable, unboxed or boxed, pinned or unpinned.
Arrays generalize the functionality provided by
bytestring
andtext
packages.Interoperability with
bytestring
andtext
is provided via separate packages.Arrays and folds provide natural builder functionality so there are no separate builder modules.
High performance binary serialization with configurable JSON like features.
Streaming combinators for unicode text processing, providing functionality equivalent to the
text
package.String interpolation for convenient construction of strings.
Streaming console IO (stdin/stdout) operations.
Streaming file and directory IO operations.
This package covers some or all of the functionality covered by streaming, pipes, conduit, list-t, logic-t, foldl, attoparsec, array, primitive, vector, vector-algorithms, binary, cereal, store, bytestring, text, stringsearch, interpolate
. Streamly provides a consistent, concise, modular and performant interface for all this functionality.
Note: The dependencies "heaps" and "monad-control" are included in the package solely for backward compatibility, and will be removed in future versions.