| Copyright | (c) Carlo Nucera, 2016 |
|---|---|
| License | BSD3 |
| Maintainer | meditans@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.C.Preprocessor.Remover.Internal.Preprocess
Description
- parseModuleWithCpp :: CppOptions -> FilePath -> IO String
- getPreprocessedSrcDirect :: GhcMonad m => CppOptions -> FilePath -> m String
Entry point for parsing
parseModuleWithCpp :: CppOptions -> FilePath -> IO String Source #
Parse a module with specific instructions for the C pre-processor.
Wrapper around GHC's preprocess
getPreprocessedSrcDirect :: GhcMonad m => CppOptions -> FilePath -> m String Source #
Invoke GHC's preprocess function at the cpp phase, adding the
options specified in the first argument.