file-embed-lzma

Use Template Haskell to embed (LZMA compressed) data.

https://github.com/phadej/file-embed-lzma

Version on this page:0.0.1
LTS Haskell 22.17:0.0.1@rev:2
Stackage Nightly 2024-04-14:0.0.1@rev:2
Latest on Hackage:0.0.1@rev:2

See all snapshots file-embed-lzma appears in

BSD-3-Clause licensed by Oleg Grenrus
Maintained by Oleg.Grenrus
This version can be pinned in stack with:file-embed-lzma-0.0.1@sha256:f66619e1eebef7d99096de6fe41349ad0301a1c4c62ae1ff45083d291bd09f2f,1985

Module documentation for 0.0.1

The file-embed package let's embed file and dir contents.

This package is similar, but also compresses the embedded contents with LZMA. That makes resulting object files smaller, at the cost of start up decompression.

There's also an embedRecursiveDir function.

Changes

Revision history for file-embed-lzma

0.0.1

  • Use bytesPrimL when available
  • Drop GHC-7.x support. We no more depend on th-lift-instances, and use TemplateHaskellQuotes instead of TemplateHaskell for the lib itself.
  • embedRecursiveDir sorts files, so the generated code is more deterministic

0

  • First version. Released on an unsuspecting world.