A pure Haskell implementation of the Snappy compression format.
This library prioritizes portability and simplicity over raw speed. It works reliably across platforms without requiring a C toolchain or dealing with FFI.
Performance
In informal benchmarks, this implementation is roughly 2–3× slower than native Snappy.
When to use
You want cross-platform Snappy encode/decode with a pure Haskell dependency stack
You’d rather avoid C FFI and the build/packaging complexity that comes with it
When not to use
You need maximum throughput (use the native library or an FFI-based binding instead)
Changes
Revision history for snappy-hs
0.1.0.5 – 2026-02-23
Use Ptr directly to make implementation faster.
0.1.0.4 – 2025-10-7
Loosen vector and bytestring bounds.
0.1.0.3 – 2025-08-30
Add home and issues page to hackage.
0.1.0.2 – 2025-08-18
Rename ParseException to DecodeError and expose its values.