binembed-0.1.0.3: Embed data into object files.

CopyrightClaude Heiland-Allen 2010
Maintainerclaude@mathr.co.uk
Safe HaskellNone
LanguageHaskell98

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 -> UserHooks Source

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.