Use Template Haskell to embed (LZMA compressed) data.

Version on this page:0.0.1@rev:1
LTS Haskell 22.28:0.0.1@rev:2
Stackage Nightly 2024-07-13:0.1
Latest on Hackage:0.1

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:f94bf9b3ac1af9095f7c6556392a228cb742c245ae5baa57f067ad45809a0bfe,2035

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.


Revision history for file-embed-lzma


  • 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


  • First version. Released on an unsuspecting world.