cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) The University of Glasgow 2006
Duncan Coutts 2008
Maintainercabal-devel@haskell.org
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.SetupWrapper

Description

An interface to building and installing Cabal packages. If the Built-Type field is specified as something other than Custom, and the current version of Cabal is acceptable, this performs setup actions directly. Otherwise it builds the setup script and runs it with the given arguments.

Synopsis

Documentation

getSetup :: Verbosity -> SetupScriptOptions -> Maybe PackageDescription -> IO Setup Source #

Prepare to build a package by configuring a SetupMethod. The returned Setup object identifies the method. The SetupScriptOptions may be changed during the configuration process; the final values are given by setupScriptOptions.

runSetup Source #

Arguments

:: Verbosity 
-> Setup 
-> [String]

command-line arguments

-> IO () 

Run a configured Setup with specific arguments.

runSetupCommand Source #

Arguments

:: Verbosity 
-> Setup 
-> CommandUI flags

command definition

-> flags

command flags

-> [String]

extra command-line arguments

-> IO () 

Run a command through a configured Setup.

setupWrapper Source #

Arguments

:: Verbosity 
-> SetupScriptOptions 
-> Maybe PackageDescription 
-> CommandUI flags 
-> (Version -> flags)

produce command flags given the Cabal library version

-> (Version -> [String]) 
-> IO () 

Configure a Setup and run a command in one step. The command flags may depend on the Cabal library version in use.

data SetupScriptOptions Source #

SetupScriptOptions are options used to configure and run Setup, as opposed to options given to the Cabal command at runtime.

Constructors

SetupScriptOptions 

Fields