MIT licensed by Michael Chavinda
Maintained by [email protected]
This version can be pinned in stack with:snappy-hs-0.1.0.5@sha256:c2bdac6f5ac1bd8e935e18f43ecaefcbc2b6b2e919cfbc1ea04cac0799348958,1834

Module documentation for 0.1.0.5

Used by 2 packages in nightly-2026-02-24(full list with versions):

snappy-hs

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.

0.1.0.1 – 2025-08-17

  • Loosen version bounds for bytestring and vector.

0.1.0.0 – 2025-08-16

  • Compress and decompress raw snappy