Use Template Haskell to embed file contents directly.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Data
sample
test
.gitignore
.travis.yml
ChangeLog.md
LICENSE
README.md
Setup.lhs
appveyor.yml
file-embed.cabal
inject.hs
mkbin.hs
runtests.hs
stack.yaml
template.hs
test-inject.sh
test.hs

README.md

file-embed

Build Status Build status

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.