Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
FreeC.Application.Options
Description
This module contains the command line argument parser and the data type that stores the values of the command line options.
Synopsis
- data Options = Options {
- optShowHelp :: Bool
- optShowVersion :: Bool
- optInputFiles :: [FilePath]
- optOutputDir :: Maybe FilePath
- optImportDirs :: [FilePath]
- optBaseLibDir :: FilePath
- optCreateCoqProject :: Bool
- optCreateAgdaLib :: Bool
- optTransformPatternMatching :: Bool
- optDumpTransformedModulesDir :: Maybe FilePath
- optFrontend :: String
- optBackend :: String
- makeDefaultOptions :: IO Options
Documentation
Data type that stores the command line options passed to the compiler.
Constructors
Options | |
Fields
|
Instances
MonadState Options Application Source # | |
Defined in FreeC.Monad.Application |
makeDefaultOptions :: IO Options Source #
The default command line options.
The base library directory defaults to the base/coq
directory in the
cabal data directory.
By default output will be printed to the console. The compiler looks for imported files in the current directory and the output directory (if one is specified).