@hackage file-embed0.0.16.0

Use Template Haskell to embed file contents directly.

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.