binembed-0.1: Embed data into object files.

Maintainerclaudiusmaximus@goto10.org

Distribution.Simple.BinEmbed

Description

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.

Synopsis

Documentation

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.