file-embed-lzma-0.1: Use Template Haskell to embed (LZMA compressed) data.
Copyright(c) 2015-2018 Futurice 2018 Oleg Grenrus
LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellSafe-Inferred
LanguageHaskell2010

FileEmbedLzma

Description

 
Synopsis

Embed files

Embed directories

embedDir :: FilePath -> Code Q [(FilePath, ByteString)] Source #

Embed a [(FilePath, ByteString)] list, traversing given directory.

Internal

Directory listing

listDirectoryFilesF Source #

Arguments

:: (FilePath -> IO [(FilePath, ByteString)])

what to do with a sub-directory

-> FilePath 
-> IO [(FilePath, ByteString)] 

Template Haskell

lazyBytestringE :: ByteString -> Code Q ByteString Source #

Makes lazy ByteString expression. Embedded value is compressed with LZMA.