| Maintainer | Brandon Chinn <brandon@leapyear.io> |
|---|---|
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Codec.SelfExtract.Distribution
Description
Defines functions that should be used in the Setup.hs file.
Documentation
bundle :: String -> FilePath -> LocalBuildInfo -> IO () Source #
Bundle the given directory into the executable with the given name.
For example, to bundle the static/ directory in the executable named install-files:
main = defaultMainWithHooks simpleUserHooks
{ postCopy = args cf pd lbi -> do
postCopy simpleUserHooks args cf pd lbi
bundle "install-files" "./static/" lbi
}