git.iko.soy/typeable/file-embed
on master help sign in
Version bump for #14
2964c07Michael Snoyman
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.0.9
2+
3+* embedStringFile [#14](https://github.com/snoyberg/file-embed/pull/14)
4+
1## 0.0.8.2
5## 0.0.8.2
2
6
3* Improve inject documentation [#11](https://github.com/snoyberg/file-embed/issues/11)
7* Improve inject documentation [#11](https://github.com/snoyberg/file-embed/issues/11)
Data/FileEmbed.hs+4
@@ -156,6 +156,8 @@ stringToBs = B8.pack
156-- >
156-- >
157-- > myFile :: IsString a => a
157-- > myFile :: IsString a => a
158-- > myFile = $(embedStringFile "dirName/fileName")
158-- > myFile = $(embedStringFile "dirName/fileName")
159+--
160+-- Since 0.0.9
159embedStringFile :: FilePath -> Q Exp
161embedStringFile :: FilePath -> Q Exp
160embedStringFile fp =
162embedStringFile fp =
161#if MIN_VERSION_template_haskell(2,7,0)
163#if MIN_VERSION_template_haskell(2,7,0)
@@ -165,6 +167,8 @@ embedStringFile fp =
165
167
166-- | Embed a single existing string file in your source code
168-- | Embed a single existing string file in your source code
167-- out of list a list of paths supplied.
169-- out of list a list of paths supplied.
170+--
171+-- Since 0.0.9
168embedOneStringFileOf :: [FilePath] -> Q Exp
172embedOneStringFileOf :: [FilePath] -> Q Exp
169embedOneStringFileOf ps =
173embedOneStringFileOf ps =
170 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
174 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
file-embed.cabal+1−1
@@ -1,5 +1,5 @@
1name: file-embed
1name: file-embed
2−version: 0.0.8.2
2+version: 0.0.9
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>
5author: Michael Snoyman <michael@snoyman.com>