self-extract-0.2.0.0: A Haskell library to make self-extracting executables

MaintainerBrandon Chinn <brandon@leapyear.io>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.SelfExtract.Distribution

Description

Defines functions that should be used in the Setup.hs file.

Synopsis

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
  }

bundle' :: String -> Path b Dir -> LocalBuildInfo -> IO () Source #

Same as bundle, except using the Path library.

main = defaultMainWithHooks simpleUserHooks
  { postCopy = args cf pd lbi -> do
      postCopy simpleUserHooks args cf pd lbi
      bundle' "install-files" [reldir|./static/|] lbi
  }