mirror of
https://github.com/typeable/file-embed.git
synced 2024-09-11 07:45:30 +03:00
Rename embedFile' into embedOneFileOf
This commit is contained in:
parent
1cabbcfdca
commit
954879fff9
@ -18,7 +18,7 @@
|
||||
module Data.FileEmbed
|
||||
( -- * Embed at compile time
|
||||
embedFile
|
||||
, embedFile'
|
||||
, embedOneFileOf
|
||||
, embedDir
|
||||
, getDir
|
||||
-- * Inject into an executable
|
||||
@ -76,8 +76,8 @@ embedFile fp =
|
||||
-- >
|
||||
-- > myFile :: Data.ByteString.ByteString
|
||||
-- > myFile = $(embedFile' [ "dirName/fileName", "src/dirName/fileName" ])
|
||||
embedFile' :: [FilePath] -> Q Exp
|
||||
embedFile' ps =
|
||||
embedOneFileOf :: [FilePath] -> Q Exp
|
||||
embedOneFileOf ps =
|
||||
(runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
|
||||
#if MIN_VERSION_template_haskell(2,7,0)
|
||||
qAddDependentFile path
|
||||
|
Loading…
Reference in New Issue
Block a user