cabal-debian-4.27: Create a Debianization for a Cabal package

Safe HaskellNone
LanguageHaskell98

Debian.Debianize.Options

Synopsis

Documentation

options :: MonadIO m => [OptDescr (CabalT m ())] Source

Options that modify other atoms.

compileArgs :: MonadIO m => [String] -> CabalT m () Source

Apply a list of command line arguments to the monadic state.

compileEnvironmentArgs :: MonadIO m => CabalT m () Source

Get a list of arguments from the CABALDEBIAN environment variable and apply them to the monadic state.

compileCommandlineArgs :: MonadIO m => CabalT m () Source

Get the list of command line arguments and apply them to the monadic state.

putEnvironmentArgs :: [String] -> IO () Source

Insert a value for CABALDEBIAN into the environment that the withEnvironment* functions above will find and use. E.g. putEnvironmentFlags ["--dry-run", "--validate"] (debianize defaultFlags)

withEnvironmentArgs :: MonadIO m => ([String] -> CabalT m a) -> CabalT m a Source

Read a value out of the CABALDEBIAN environment variable which is the result of applying show to a [String].