git.iko.soy/typeable/file-embed
on master help sign in
Version bump
commitf8c9f30c1a0b3406be730359e08e9dfcd4b4a87c authorMichael Snoyman <michael@snoyman.com> dateMon 10 May 2021, 18:55 (5 years ago) parent6633884
3 files changed+7−1
ChangeLog.md+4 Data/FileEmbed.hs+2 file-embed.cabal+1−1
ChangeLog.md+4
@@ -1,5 +1,9 @@
11# ChangeLog for file-embed
22
3+## 0.0.14.0
4+
5+* Add `embedFileIfExists`
6+
37## 0.0.13.0
48
59* Ensure that directory listings are returned in sorted order for reproducibility [yesodweb/yesod#1684](https://github.com/yesodweb/yesod/issues/1684)
Data/FileEmbed.hs+2
@@ -98,6 +98,8 @@ embedFile fp =
9898-- >
9999-- > maybeMyFile :: Maybe Data.ByteString.ByteString
100100-- > maybeMyFile = $(embedFileIfExists "dirName/fileName")
101+--
102+-- @since 0.0.14.0
101103embedFileIfExists :: FilePath -> Q Exp
102104embedFileIfExists fp = do
103105 mbs <- runIO maybeFile
file-embed.cabal+1−1
@@ -1,5 +1,5 @@
11name: file-embed
2−version: 0.0.13.0
2+version: 0.0.14.0
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>