cpphsSource codeContentsIndex
Language.Preprocessor.Cpphs.Options
PortabilityAll
Stabilityexperimental
MaintainerMalcolm 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 :: BoolLeave #define and #undef in output of ifdef?
locations :: BoolPlace #line droppings in output?
pragma :: BoolKeep #pragma in final output?
stripEol :: BoolRemove C eol (//) comments everywhere?
stripC89 :: BoolRemove C inline (/**/) comments everywhere?
lang :: BoolLex input as Haskell code?
ansi :: BoolPermit stringise # and catenate ## operators?
layout :: BoolRetain newlines in macro expansions?
literate :: BoolRemove literate markup?
warnings :: BoolIssue warnings?
parseOptions :: [String] -> Either String CpphsOptionsSource
Parse all command-line options.
defaultCpphsOptions :: CpphsOptionsSource
Default options.
defaultBoolOptions :: BoolOptionsSource
Default settings of boolean options.
Produced by Haddock version 0.8