|
|
|
|
|
|
Synopsis |
|
|
|
Documentation |
|
data Program |
Represents a program which cabal may call.
| Constructors | Program | | programName :: String | The simple name of the program, eg ghc
| programBinName :: String | The name of this program's binary, eg ghc-6.4
| programArgs :: [String] | Default command-line args for this program
| programLocation :: ProgramLocation | Location of the program. eg. /usr/bin/ghc-6.4
|
|
| Instances | |
|
|
data ProgramLocation |
Similar to Maybe, but tells us whether it's specifed by user or
not.
| Constructors | | Instances | |
|
|
data ProgramConfiguration |
Constructors | | Instances | |
|
|
withProgramFlag :: Program -> String |
The flag for giving a path to this program. eg --with-alex=/usr/bin/alex
|
|
programOptsFlag :: Program -> String |
The flag for giving args for this program.
eg --haddock-options=-s http://foo
|
|
programOptsField :: Program -> String |
The foo.cabal field for giving args for this program.
eg haddock-options: -s http://foo
|
|
defaultProgramConfiguration :: ProgramConfiguration |
The default list of programs and their arguments. These programs
are typically used internally to Cabal.
|
|
updateProgram :: Maybe Program -> ProgramConfiguration -> ProgramConfiguration |
Update this program's entry in the configuration. No changes if
you pass in Nothing.
|
|
userSpecifyPath |
|
|
userSpecifyArgs |
|
|
lookupProgram :: String -> ProgramConfiguration -> IO (Maybe Program) |
Looks up a program in the given configuration. If there's no
location information in the configuration, then we use IO to look
on the system in PATH for the program. If the program is not in
the configuration at all, we return Nothing. FIX: should we build
a simpleProgram in that case? Do we want a way to specify NOT to
find it on the system (populate programLocation).
|
|
lookupPrograms :: ProgramConfiguration -> IO [(String, Maybe Program)] |
|
rawSystemProgram |
|
|
rawSystemProgramConf |
|
|
simpleProgram :: String -> Program |
|
ghcProgram :: Program |
|
ghcPkgProgram :: Program |
|
nhcProgram :: Program |
|
hugsProgram :: Program |
|
ranlibProgram :: Program |
|
arProgram :: Program |
|
alexProgram :: Program |
|
hsc2hsProgram :: Program |
|
c2hsProgram :: Program |
|
cpphsProgram :: Program |
|
haddockProgram :: Program |
|
greencardProgram :: Program |
|
ldProgram :: Program |
|
cppProgram :: Program |
|
pfesetupProgram :: Program |
|
Produced by Haddock version 0.7 |