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

Safe HaskellNone
LanguageHaskell98

Debian.Debianize.Options

Synopsis

Documentation

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

Options that modify other atoms.

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

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

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

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

compileCommandlineArgs :: MonadIO m => DebT 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] -> DebT m a) -> DebT m a Source

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