/snapper

Compress and decompress snappy encoded data

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Snapper

Haskell library for compressing / decompressing snappy encoded data.

Snappy Tom - Chunky Fish with Flaked Snapper

This package is much the same as the existing snappy package on Hackage. The main difference being that it includes the whole Snappy C++ library so that it does not need to be install via brew or similar.

API

Because of the way Snappy is used in the Hadoop ecosystem (i.e. small length prefixed blocks) we don't have a need for anything fancier than functions over a strict ByteString.

compress :: Strict.ByteString -> Strict.ByteString

decompress :: Strict.ByteString -> Maybe Strict.ByteString