Maintainer | claude@mathr.co.uk |
---|---|
Safe Haskell | None |
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 -> UserHooks
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.