git.iko.soy/typeable/file-embed
on master help sign in
Version bump for #14
commit2964c073d90fea8b5324e71bef156c83c51123af authorMichael Snoyman <michael@snoyman.com> dateFri 14 Aug 2015, 07:51 (11 years ago) parentc421af7
3 files changed+9−1
ChangeLog.md+4 Data/FileEmbed.hs+4 file-embed.cabal+1−1
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.0.9
2+
3+* embedStringFile [#14](https://github.com/snoyberg/file-embed/pull/14)
4+
15## 0.0.8.2
26
37* Improve inject documentation [#11](https://github.com/snoyberg/file-embed/issues/11)
Data/FileEmbed.hs+4
@@ -156,6 +156,8 @@ stringToBs = B8.pack
156156-- >
157157-- > myFile :: IsString a => a
158158-- > myFile = $(embedStringFile "dirName/fileName")
159+--
160+-- Since 0.0.9
159161embedStringFile :: FilePath -> Q Exp
160162embedStringFile fp =
161163#if MIN_VERSION_template_haskell(2,7,0)
@@ -165,6 +167,8 @@ embedStringFile fp =
165167
166168-- | Embed a single existing string file in your source code
167169-- out of list a list of paths supplied.
170+--
171+-- Since 0.0.9
168172embedOneStringFileOf :: [FilePath] -> Q Exp
169173embedOneStringFileOf ps =
170174 (runIO $ readExistingFile ps) >>= \ ( path, content ) -> do
file-embed.cabal+1−1
@@ -1,5 +1,5 @@
11name: file-embed
2−version: 0.0.8.2
2+version: 0.0.9
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>