Use Template Haskell to embed file contents directly.

Version on this page:
LTS Haskell 15.15:
Stackage Nightly 2020-06-05:
Latest on Hackage:

See all snapshots file-embed appears in

BSD-3-Clause licensed and maintained by Michael Snoyman

Module documentation for

This version can be pinned in stack with:[email protected]:ec61f3e28785ec605768ff9ca4c1926c4728e935c0ff84666bdc244437ae824c,1351


Use Template Haskell to read a file or all the files in a directory, and turn them into (path, bytestring) pairs embedded in your haskell code.


  • Improve inject documentation #11

Minor cleanup


  • Custom postfix for magic string #7

Minor cleanup