Use Template Haskell to embed file contents directly.
Go to file
Michael Snoyman 548430d2a7
Merge pull request #41 from aveltras/build-system-agnostic-project-path
Add build system agnostic version of makeRelativeToProject
2021-08-29 14:10:15 +03:00
.github/workflows Try upgrading Stack first 2020-07-01 10:43:03 +03:00
Data Add makeRelativeToLocationPredicate 2021-08-29 10:53:47 +02:00
sample Slightly cleaned up tests 2011-05-27 07:56:35 +03:00
test updated for '\r' 2021-05-10 10:33:59 -04:00
.gitignore CI update 2018-07-24 08:28:07 +03:00
ChangeLog.md Add makeRelativeToLocationPredicate 2021-08-29 10:53:47 +02:00
file-embed.cabal Add makeRelativeToLocationPredicate 2021-08-29 10:53:47 +02: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 Switch badge to Actions 2020-04-26 10:35:37 +03: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 Move to Azure CI 2019-12-16 09:38:58 +02: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

Tests

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.