Safe Haskell | None |
---|---|
Language | Haskell98 |
Main
Synopsis
- version :: String
- main :: IO ()
- execute :: CpphsOptions -> Maybe FilePath -> Maybe FilePath -> IO ()
- isLeft :: Either a b -> Bool
- fromLeft :: Either a b -> a
- fromRight :: Either a b -> b
- data ConvertArgs = ConvertArgs {
- traditional, strip :: Bool
- infile, outfile :: String
- convertArgs :: [String] -> [String]
Documentation
execute :: CpphsOptions -> Maybe FilePath -> Maybe FilePath -> IO () #
Execute the preprocessor. If the filepath is Nothing then default to stdout/stdin as appropriate.
data ConvertArgs #
Convert commandline options to remain compatible with cpp. Based on a shell script cpphs.compat
Constructors
ConvertArgs | |
Fields
|
convertArgs :: [String] -> [String] #