git.iko.soy/typeable/file-embed
on master help sign in
Version bump
e1c299cMichael Snoyman
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+
1## 0.0.7.1
5## 0.0.7.1
2
6
3Minor cleanup
7Minor cleanup
Data/FileEmbed.hs+6
@@ -189,6 +189,8 @@ dummySpace = dummySpaceWith "MS"
189-- order for this to work, the same postfix must be used by 'inject' /
189-- order for this to work, the same postfix must be used by 'inject' /
190-- 'injectFile'. This allows an executable to have multiple
190-- 'injectFile'. This allows an executable to have multiple
191-- 'ByteString's injected into it, without encountering collisions.
191-- 'ByteString's injected into it, without encountering collisions.
192+--
193+-- Since 0.0.8
192dummySpaceWith :: B.ByteString -> Int -> Q Exp
194dummySpaceWith :: B.ByteString -> Int -> Q Exp
193dummySpaceWith postfix space = do
195dummySpaceWith postfix space = do
194 let size = padSize space
196 let size = padSize space
@@ -210,6 +212,8 @@ inject :: B.ByteString -- ^ bs to inject
210inject = injectWith "MS"
212inject = injectWith "MS"
211
213
212-- | Like 'inject', but takes a postfix for the magic string.
214-- | Like 'inject', but takes a postfix for the magic string.
215+--
216+-- Since 0.0.8
213injectWith :: B.ByteString -- ^ postfix of magic string
217injectWith :: B.ByteString -- ^ postfix of magic string
214 -> B.ByteString -- ^ bs to inject
218 -> B.ByteString -- ^ bs to inject
215 -> B.ByteString -- ^ original BS containing dummy
219 -> B.ByteString -- ^ original BS containing dummy
@@ -235,6 +239,8 @@ injectFile :: B.ByteString -- ^ bs to inject
235injectFile = injectFileWith "MS"
239injectFile = injectFileWith "MS"
236
240
237-- | Like 'injectFile', but takes a postfix for the magic string.
241-- | Like 'injectFile', but takes a postfix for the magic string.
242+--
243+-- Since 0.0.8
238injectFileWith :: B.ByteString -- ^ postfix of magic string
244injectFileWith :: B.ByteString -- ^ postfix of magic string
239 -> B.ByteString -- ^ bs to inject
245 -> B.ByteString -- ^ bs to inject
240 -> FilePath -- ^ template file
246 -> FilePath -- ^ template file
file-embed.cabal+1−1
@@ -1,5 +1,5 @@
1name: file-embed
1name: file-embed
2−version: 0.0.7.1
2+version: 0.0.8
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>
5author: Michael Snoyman <michael@snoyman.com>