Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 752 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 752 Bytes

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