| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.GHC.ExactPrint.Preprocess
Description
This module provides support for CPP, interpreter directives and line pragmas.
- stripLinePragmas :: String -> (String, [Comment])
- getCppTokensAsComments :: GhcMonad m => CppOptions -> FilePath -> m [Comment]
- getPreprocessedSrcDirect :: GhcMonad m => CppOptions -> FilePath -> m (String, DynFlags)
- readFileGhc :: FilePath -> IO String
- data CppOptions = CppOptions {}
- defaultCppOptions :: CppOptions
Documentation
getCppTokensAsComments Source #
Arguments
| :: GhcMonad m | |
| => CppOptions | Preprocessor Options |
| -> FilePath | Path to source file |
| -> m [Comment] |
Replacement for original getRichTokenStream which will return
the tokens for a file processed by CPP.
See bug http://ghc.haskell.org/trac/ghc/ticket/8265
getPreprocessedSrcDirect :: GhcMonad m => CppOptions -> FilePath -> m (String, DynFlags) Source #
data CppOptions Source #
Constructors
| CppOptions | |