Copyright | (c) 2015-2018 Futurice 2018 Oleg Grenrus |
---|---|
License | BSD-3-Clause |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- embedByteString :: FilePath -> Code Q ByteString
- embedLazyByteString :: FilePath -> Code Q ByteString
- embedText :: FilePath -> Code Q Text
- embedLazyText :: FilePath -> Code Q Text
- embedDir :: FilePath -> Code Q [(FilePath, ByteString)]
- embedRecursiveDir :: FilePath -> Code Q [(FilePath, ByteString)]
- listDirectoryFiles :: FilePath -> IO [(FilePath, ByteString)]
- listRecursiveDirectoryFiles :: FilePath -> IO [(FilePath, ByteString)]
- listDirectoryFilesF :: (FilePath -> IO [(FilePath, ByteString)]) -> FilePath -> IO [(FilePath, ByteString)]
- lazyBytestringE :: ByteString -> Code Q ByteString
Embed files
embedByteString :: FilePath -> Code Q ByteString Source #
Embed directories
embedDir :: FilePath -> Code Q [(FilePath, ByteString)] Source #
Embed a [(
list, traversing given directory.FilePath
, ByteString
)]
embedRecursiveDir :: FilePath -> Code Q [(FilePath, ByteString)] Source #
Internal
Directory listing
listDirectoryFiles :: FilePath -> IO [(FilePath, ByteString)] Source #
listRecursiveDirectoryFiles :: FilePath -> IO [(FilePath, ByteString)] Source #
:: (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.