-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have dummySpace / inject / injectFile take an additional magic string #7
Comments
Would the PR add a new function that allows customizing the magic string? On Sat Jan 17 2015 at 5:22:28 AM Michael Sloan notifications@github.com
|
Yes, but we'd need new versions of dummySpace / inject / injectFile. Alternatively, it might be reasonable to break the API, in order to encourage users to provide a magic string (so that different uses of this injection don't interfere with eachother). While API changes should be avoided, are there many users of this? I see file-embed has lots of reverse dependencies, but I figure most of them are using the normal file embedding stuff. http://packdeps.haskellers.com/reverse/file-embed |
Then we need new versions of those three functions. Not breaking API on a whim. |
does anyone have some example usage of the injection stuff? I am not sure how to use it. My use case is I want to use embed-file but not invoke Template Haskell. |
@gregwebs, I've been using this as a reference for the injection stuff: http://www.yesodweb.com/blog/2011/06/building-better-chm It would probably good to add more haddocks to this module, as well. You ought to be able to use injection without TH, but I'm not sure how to write a
Then, use |
Allow custom postfix for the magic string #7
I don't see how we can efficiently reserve the dummy space without |
@gregwebs I just updated the documentation: http://hackage.haskell.org/package/file-embed-0.0.8.2/docs/Data-FileEmbed.html#g:2 Closing this issue, as the original topic has been addressed. Greg: if you have questions about how to use it, let's follow up in the mailing list or a different issue. |
It looks to me like an executable can only have one injected bytestring, because the magic string is always the same for
dummySpace
.I can make a pull request adding this, if you want me to!
The text was updated successfully, but these errors were encountered: