Safe Haskell | None |
---|---|
Language | Haskell2010 |
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)
- data CppOptions = CppOptions {}
- defaultCppOptions :: CppOptions
Documentation
stripLinePragmas :: String -> (String, [Comment]) Source
:: 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