git.iko.soy/typeable/file-embed
on master help sign in
Merge pull request #25 from OlivierSohn/patch-1

Fix function name in doc

commit47ad3a5e55103f02f30f9e37ec3459a3db870d60 authorMichael Snoyman <michael@snoyman.com> dateTue 17 Apr 2018, 07:25 (8 years ago) parent2f847fbcb6864c
1 file changed+1−1
Data/FileEmbed.hs+1−1
Data/FileEmbed.hs+1−1
@@ -90,7 +90,7 @@ embedFile fp =
9090-- > import qualified Data.ByteString
9191-- >
9292-- > myFile :: Data.ByteString.ByteString
93−-- > myFile = $(embedFile' [ "dirName/fileName", "src/dirName/fileName" ])
93+-- > myFile = $(embedOneFileOf [ "dirName/fileName", "src/dirName/fileName" ])
9494embedOneFileOf :: [FilePath] -> Q Exp
9595embedOneFileOf ps =
9696 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do