git.iko.soy/typeable/file-embed
on master help sign in
Version bump
commite1c299cb6e63989a19f953fb848e30e4c258d0fa authorMichael Snoyman <michael@snoyman.com> dateWed 4 Feb 2015, 17:44 (12 years ago) parente095961
3 files changed+11−1
ChangeLog.md+4 Data/FileEmbed.hs+6 file-embed.cabal+1−1
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.0.8
2+
3+* Custom postfix for magic string [#7](https://github.com/snoyberg/file-embed/issues/7)
4+
15## 0.0.7.1
26
37Minor cleanup
Data/FileEmbed.hs+6
@@ -189,6 +189,8 @@ dummySpace = dummySpaceWith "MS"
189189-- order for this to work, the same postfix must be used by 'inject' /
190190-- 'injectFile'. This allows an executable to have multiple
191191-- 'ByteString's injected into it, without encountering collisions.
192+--
193+-- Since 0.0.8
192194dummySpaceWith :: B.ByteString -> Int -> Q Exp
193195dummySpaceWith postfix space = do
194196 let size = padSize space
@@ -210,6 +212,8 @@ inject :: B.ByteString -- ^ bs to inject
210212inject = injectWith "MS"
211213
212214-- | Like 'inject', but takes a postfix for the magic string.
215+--
216+-- Since 0.0.8
213217injectWith :: B.ByteString -- ^ postfix of magic string
214218 -> B.ByteString -- ^ bs to inject
215219 -> B.ByteString -- ^ original BS containing dummy
@@ -235,6 +239,8 @@ injectFile :: B.ByteString -- ^ bs to inject
235239injectFile = injectFileWith "MS"
236240
237241-- | Like 'injectFile', but takes a postfix for the magic string.
242+--
243+-- Since 0.0.8
238244injectFileWith :: B.ByteString -- ^ postfix of magic string
239245 -> B.ByteString -- ^ bs to inject
240246 -> FilePath -- ^ template file
file-embed.cabal+1−1
@@ -1,5 +1,5 @@
11name: file-embed
2−version: 0.0.7.1
2+version: 0.0.8
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>