ContentsIndex
Distribution.Setup
Portability GHC, Hugs
Stability alpha
Maintainer Isaac Jones <ijones@syntaxpolice.org>
Description
Explanation: Data types and parser for the standard command-line setup. Will also return commands it doesn't know about.
Synopsis
data Action
= ConfigCmd ConfigFlags
| BuildCmd
| CleanCmd
| CopyCmd (Maybe FilePath)
| HaddockCmd
| InstallCmd Bool
| SDistCmd
| RegisterCmd Bool
| UnregisterCmd
| HelpCmd
type ConfigFlags = (Maybe CompilerFlavor, Maybe FilePath, Maybe FilePath, Maybe FilePath)
data CompilerFlavor
= GHC
| NHC
| Hugs
| HBC
| Helium
| OtherCompiler String
data Compiler = Compiler {
compilerFlavor :: CompilerFlavor
compilerVersion :: Version
compilerPath :: FilePath
compilerPkgTool :: FilePath
}
parseGlobalArgs :: [String] -> IO (Action, [String])
commandList :: [Cmd a]
parseConfigureArgs :: ConfigFlags -> [String] -> [OptDescr a] -> IO (ConfigFlags, [a], [String])
parseBuildArgs :: Int -> [String] -> [OptDescr a] -> IO (Int, [a], [String])
parseCleanArgs :: [String] -> [OptDescr a] -> IO ([a], [String])
parseInstallArgs :: Bool -> [String] -> [OptDescr a] -> IO (Bool, [a], [String])
parseSDistArgs :: [String] -> [OptDescr a] -> IO ([a], [String])
parseRegisterArgs :: Bool -> [String] -> [OptDescr a] -> IO (Bool, [a], [String])
parseUnregisterArgs :: [String] -> [OptDescr a] -> IO ([a], [String])
parseCopyArgs :: Maybe FilePath -> [String] -> [OptDescr a] -> IO (Maybe FilePath, [a], [String])
Produced by Haddock version 0.6