binembed- Embed data into object files.
Safe HaskellNone



Support code to use binembed as a pre-processor in Cabal. For example, your Setup.hs might look like:

 import Distribution.Simple
 import Distribution.Simple.BinEmbed
 main = defaultMainWithHooks (withBinEmbed simpleUserHooks)

See the 'binembed-example' package for a more detailed example.



withBinEmbed :: UserHooks -> UserHooksSource

Add hooks to use binembed as a pre-processor, with input files having the file name extension .binembed. These hooks also handle building the assembly output of binembed, as well as cleaning it up afterwards.