mirror of
https://github.com/typeable/file-embed.git
synced 2024-09-11 07:45:30 +03:00
Merge pull request #25 from OlivierSohn/patch-1
Fix function name in doc
This commit is contained in:
commit
47ad3a5e55
@ -90,7 +90,7 @@ embedFile fp =
|
|||||||
-- > import qualified Data.ByteString
|
-- > import qualified Data.ByteString
|
||||||
-- >
|
-- >
|
||||||
-- > myFile :: Data.ByteString.ByteString
|
-- > myFile :: Data.ByteString.ByteString
|
||||||
-- > myFile = $(embedFile' [ "dirName/fileName", "src/dirName/fileName" ])
|
-- > myFile = $(embedOneFileOf [ "dirName/fileName", "src/dirName/fileName" ])
|
||||||
embedOneFileOf :: [FilePath] -> Q Exp
|
embedOneFileOf :: [FilePath] -> Q Exp
|
||||||
embedOneFileOf ps =
|
embedOneFileOf ps =
|
||||||
(runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
|
(runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
|
||||||
|
Loading…
Reference in New Issue
Block a user