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

Module documentation for 0.1.1.0

Used by 2 packages in nightly-2026-03-27(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