Safe Haskell | None |
---|
- processOptions :: IO Opt
- data Opt = Opt {
- optMode :: Mode
- optColumns :: !Int
- optDump :: [String]
- optStmts :: [String]
- optFOpts :: [String]
- optIncdirs :: [String]
- optCCargs :: [String]
- optHls :: [String]
- optAutoLoads :: [String]
- optHlPath :: [String]
- optIncs :: [String]
- optDefs :: [String]
- optExtensions :: [String]
- optStop :: StopCondition
- optWorkDir :: Maybe FilePath
- optAnnotate :: Maybe FilePath
- optDeps :: Maybe FilePath
- optHoDir :: Maybe FilePath
- optHoCache :: Maybe FilePath
- optTargetsIni :: Maybe FilePath
- optArgs :: [String]
- optStale :: [String]
- optKeepGoing :: !Bool
- optMainFunc :: Maybe (Bool, String)
- optArch :: [String]
- optCross :: Bool
- optOutName :: Maybe String
- optIgnoreHo :: !Bool
- optNoWriteHo :: !Bool
- optNoAuto :: !Bool
- optVerbose :: !Int
- optStatLevel :: !Int
- optInis :: Map String String
- optDumpSet :: Set Flag
- optFOptsSet :: Set Flag
- options :: Opt
- data Mode
- = BuildHl FilePath
- | Interactive
- | Version
- | VersionCtx
- | ShowHelp
- | ShowConfig
- | CompileExe
- | ShowHo String
- | ListLibraries
- | PrintHscOptions
- | PurgeCache
- | Preprocess
- data StopCondition
- putVerbose :: String -> IO ()
- putVerboseLn :: String -> IO ()
- putProgress :: String -> IO ()
- putProgressLn :: String -> IO ()
- getArguments :: IO [String]
- findHoCache :: IO (Maybe FilePath)
- verbose :: Bool
- verbose2 :: Bool
- progress :: Bool
- dump :: Flag -> Bool
- wdump :: Monad m => Flag -> m () -> m ()
- fopts :: Flag -> Bool
- flint :: Bool
- fileOptions :: Monad m => Opt -> [String] -> m Opt
- withOptions :: Opt -> OptM a -> a
- withOptionsT :: Opt -> OptT m a -> m a
- getArgString :: IO (String, String)
- outputName :: [Char]
- type OptM = OptT Identity
- data OptT m a
- class Monad m => OptionMonad m where
- getOptions :: m Opt
- flagOpt :: OptionMonad m => Flag -> m Bool
Documentation
processOptions :: IO OptSource
Parse commandline options.
Opt | |
|
BuildHl FilePath | Build the specified hl-file given a description file. |
Interactive | Run interactively. |
Version | Print version and die. |
VersionCtx | Print version context and die. |
ShowHelp | Show help message and die. |
ShowConfig | Show configuration info. |
CompileExe | Compile executable |
ShowHo String | Show ho-file. |
ListLibraries | List libraries |
PrintHscOptions | Print options for hsc2hs |
PurgeCache | Purge the cache |
Preprocess | Filter through preprocessor |
data StopCondition Source
putVerbose :: String -> IO ()Source
Put a string to stderr when running verbose.
putVerboseLn :: String -> IO ()Source
Put a line to stderr when running verbose.
putProgress :: String -> IO ()Source
putProgressLn :: String -> IO ()Source
Put a line to stderr when running verbose.
getArguments :: IO [String]Source
findHoCache :: IO (Maybe FilePath)Source
withOptions :: Opt -> OptM a -> aSource
withOptionsT :: Opt -> OptT m a -> m aSource
getArgString :: IO (String, String)Source
outputName :: [Char]Source
class Monad m => OptionMonad m whereSource
getOptions :: m OptSource
OptionMonad Identity | |
OptionMonad Tc | |
Monad m => OptionMonad (OptT m) |
flagOpt :: OptionMonad m => Flag -> m BoolSource