|
Distribution.Setup | Portability | portable | 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 |
|
module Distribution.Compiler | | | | data ConfigFlags = ConfigFlags {} | | type CopyFlags = (Maybe FilePath, Int) | | type InstallFlags = (Bool, Int) | | type RegisterFlags = (Bool, Bool, Int) | | type SDistFlags = (Bool, Int) | | parseGlobalArgs :: [String] -> IO (Action, [String]) | | parseConfigureArgs :: ConfigFlags -> [String] -> [OptDescr a] -> IO (ConfigFlags, [a], [String]) | | parseBuildArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) | | parseCleanArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) | | parseHaddockArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) | | parseProgramaticaArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) | | parseTestArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) | | parseInstallArgs :: InstallFlags -> [String] -> [OptDescr a] -> IO (InstallFlags, [a], [String]) | | parseSDistArgs :: [String] -> [OptDescr a] -> IO (SDistFlags, [a], [String]) | | parseRegisterArgs :: RegisterFlags -> [String] -> [OptDescr a] -> IO (RegisterFlags, [a], [String]) | | parseUnregisterArgs :: RegisterFlags -> [String] -> [OptDescr a] -> IO (RegisterFlags, [a], [String]) | | parseCopyArgs :: CopyFlags -> [String] -> [OptDescr a] -> IO (CopyFlags, [a], [String]) | | reqPathArg :: (FilePath -> a) -> ArgDescr a | | reqDirArg :: (FilePath -> a) -> ArgDescr a |
|
|
Documentation |
|
module Distribution.Compiler |
|
data Action |
Constructors | ConfigCmd ConfigFlags | | BuildCmd | | CleanCmd | | CopyCmd (Maybe FilePath) | | HaddockCmd | | ProgramaticaCmd | | InstallCmd Bool | | SDistCmd | | TestCmd | | RegisterCmd Bool Bool | | UnregisterCmd Bool Bool | | HelpCmd | |
| Instances | |
|
|
data ConfigFlags |
Flags to configure command | Constructors | ConfigFlags | | configHcFlavor :: (Maybe CompilerFlavor) | | configHcPath :: (Maybe FilePath) | given compiler location | configHcPkg :: (Maybe FilePath) | given hc-pkg location | configHaddock :: (Maybe FilePath) | Haddock path | configHappy :: (Maybe FilePath) | Happy path | configAlex :: (Maybe FilePath) | Alex path | configHsc2hs :: (Maybe FilePath) | Hsc2hs path | configC2hs :: (Maybe FilePath) | C2hs path | configCpphs :: (Maybe FilePath) | Cpphs path | configGreencard :: (Maybe FilePath) | GreenCard path | configProfLib :: Bool | Enable profiling in the library | configProfExe :: Bool | Enable profiling in the executables. | configPrefix :: (Maybe FilePath) | installation prefix | configVerbose :: Int | verbosity level | configUser :: Bool | | configGHCiLib :: Bool | Enable compiling library for GHCi |
|
| Instances | |
|
|
type CopyFlags = (Maybe FilePath, Int) |
Flags to copy: (Copy Location, verbose) |
|
type InstallFlags = (Bool, Int) |
Flags to install: (user package, verbose) |
|
type RegisterFlags = (Bool, Bool, Int) |
Flags to register and unregister: (user package, gen-script, verbose) |
|
type SDistFlags = (Bool, Int) |
Flags to sdist: (snapshot, verbose) |
|
parseGlobalArgs :: [String] -> IO (Action, [String]) |
|
parseConfigureArgs :: ConfigFlags -> [String] -> [OptDescr a] -> IO (ConfigFlags, [a], [String]) |
|
parseBuildArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) |
|
parseCleanArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) |
|
parseHaddockArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) |
|
parseProgramaticaArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) |
|
parseTestArgs :: [String] -> [OptDescr a] -> IO (Int, [a], [String]) |
|
parseInstallArgs :: InstallFlags -> [String] -> [OptDescr a] -> IO (InstallFlags, [a], [String]) |
|
parseSDistArgs :: [String] -> [OptDescr a] -> IO (SDistFlags, [a], [String]) |
|
parseRegisterArgs :: RegisterFlags -> [String] -> [OptDescr a] -> IO (RegisterFlags, [a], [String]) |
|
parseUnregisterArgs :: RegisterFlags -> [String] -> [OptDescr a] -> IO (RegisterFlags, [a], [String]) |
|
parseCopyArgs :: CopyFlags -> [String] -> [OptDescr a] -> IO (CopyFlags, [a], [String]) |
|
reqPathArg :: (FilePath -> a) -> ArgDescr a |
|
reqDirArg :: (FilePath -> a) -> ArgDescr a |
|
Produced by Haddock version 0.6 |