Use Template Haskell to embed file contents directly.
Go to file
Michael Snoyman 47ad3a5e55
Merge pull request #25 from OlivierSohn/patch-1
Fix function name in doc
2018-04-17 07:25:44 +03:00
Data Fix function name in doc 2018-04-17 03:15:02 +02:00
sample Slightly cleaned up tests 2011-05-27 07:56:35 +03:00
test Enable tests on ghc 6.12.3 2015-08-14 09:47:56 +03:00
.gitignore Add stack.yaml 2015-08-13 23:43:51 +03:00
.travis.yml Travis update 2017-09-14 12:24:01 +03:00
ChangeLog.md Version bump 2017-09-14 12:42:12 +03:00
file-embed.cabal Version bump 2017-09-14 12:42:12 +03:00
inject.hs Injection 2011-05-27 08:23:17 +03:00
LICENSE Initial working version with sample, undocumented 2009-07-23 21:42:43 +03:00
mkbin.hs Slightly cleaned up tests 2011-05-27 07:56:35 +03:00
README.md Make summary more accurate; minor cleanup. 2015-02-25 00:41:25 -05:00
runtests.hs Slightly cleaned up tests 2011-05-27 07:56:35 +03:00
Setup.lhs Initial working version with sample, undocumented 2009-07-23 21:42:43 +03:00
stack.yaml Newer LTS 2017-09-14 12:41:40 +03:00
template.hs Injection 2011-05-27 08:23:17 +03:00
test-inject.sh Injection 2011-05-27 08:23:17 +03:00
test.hs Initial working version with sample, undocumented 2009-07-23 21:42:43 +03:00

file-embed

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.