@@ -18,7 +18,7 @@
18module Data.FileEmbed
18module Data.FileEmbed
19 ( -- * Embed at compile time
19 ( -- * Embed at compile time
21− , embedFile'
21+ , embedOneFileOf
22 , embedDir
22 , embedDir
24 -- * Inject into an executable
24 -- * Inject into an executable
@@ -76,8 +76,8 @@ embedFile fp =
77-- > myFile :: Data.ByteString.ByteString
77-- > myFile :: Data.ByteString.ByteString
78-- > myFile = $(embedFile' [ "dirName/fileName", "src/dirName/fileName" ])
78-- > myFile = $(embedFile' [ "dirName/fileName", "src/dirName/fileName" ])
79−embedFile' :: [FilePath] -> Q Exp
79+embedOneFileOf :: [FilePath] -> Q Exp
80−embedFile' ps =
80+embedOneFileOf ps =
81 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
81 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
82#if MIN_VERSION_template_haskell(2,7,0)
82#if MIN_VERSION_template_haskell(2,7,0)
83 qAddDependentFile path
83 qAddDependentFile path