Language.Preprocessor.Cpphs.Options

| cpphs | Source code | Contents | Index
Language.Preprocessor.Cpphs.Options |
Portability | All
Stability | experimental
Maintainer | Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
Description
This module deals with Cpphs options and parsing them
Synopsis
data CpphsOptions = CpphsOptions {
infiles :: [FilePath]
outfiles :: [FilePath]
defines :: [(String, String)]
includes :: [String]
preInclude :: [FilePath]
boolopts :: BoolOptions
}
data BoolOptions = BoolOptions {
macros :: Bool
locations :: Bool
pragma :: Bool
stripEol :: Bool
stripC89 :: Bool
lang :: Bool
ansi :: Bool
layout :: Bool
literate :: Bool
warnings :: Bool
}
parseOptions :: [String] -> Either String CpphsOptions
defaultCpphsOptions :: CpphsOptions
defaultBoolOptions :: BoolOptions
Documentation
data CpphsOptions | Source
Cpphs options structure.
Constructors
CpphsOptions |
infiles :: [FilePath] |
outfiles :: [FilePath] |
defines :: [(String, String)] |
includes :: [String] |
preInclude :: [FilePath] | Files to #include before anything else
boolopts :: BoolOptions |
data BoolOptions | Source
Options representable as Booleans.
Constructors
BoolOptions |
macros :: Bool | Leave #define and #undef in output of ifdef?
locations :: Bool | Place #line droppings in output?
pragma :: Bool | Keep #pragma in final output?
stripEol :: Bool | Remove C eol (//) comments everywhere?
stripC89 :: Bool | Remove C inline (/**/) comments everywhere?
lang :: Bool | Lex input as Haskell code?
ansi :: Bool | Permit stringise # and catenate ## operators?
layout :: Bool | Retain newlines in macro expansions?
literate :: Bool | Remove literate markup?
warnings :: Bool | Issue warnings?
parseOptions :: [String] -> Either String CpphsOptions | Source
Parse all command-line options.
defaultCpphsOptions :: CpphsOptions | Source
Default options.
defaultBoolOptions :: BoolOptions | Source
Default settings of boolean options.
Produced by Haddock version 0.8