Portability | All |
---|---|
Stability | experimental |
Maintainer | Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> |
Safe Haskell | Safe-Inferred |
Language.Preprocessor.Cpphs.Options
Description
This module deals with Cpphs options and parsing them
- data CpphsOptions = CpphsOptions {
- infiles :: [FilePath]
- outfiles :: [FilePath]
- defines :: [(String, String)]
- includes :: [String]
- preInclude :: [FilePath]
- boolopts :: BoolOptions
- data BoolOptions = BoolOptions {}
- parseOptions :: [String] -> Either String CpphsOptions
- defaultCpphsOptions :: CpphsOptions
- defaultBoolOptions :: BoolOptions
- trailing :: Eq a => [a] -> [a] -> [a]
Documentation
data CpphsOptions
Cpphs options structure.
Constructors
CpphsOptions | |
Fields
|
data BoolOptions
Options representable as Booleans.
Constructors
BoolOptions | |
Fields
|
parseOptions :: [String] -> Either String CpphsOptions
Parse all command-line options.
defaultCpphsOptions :: CpphsOptions
Default options.
defaultBoolOptions :: BoolOptions
Default settings of boolean options.
trailing :: Eq a => [a] -> [a] -> [a]
Trim trailing elements of the second list that match any from the first list. Typically used to remove trailing forward/back slashes from a directory path.