Safe Haskell | None |
---|---|
Language | Haskell2010 |
Importify.Preprocessor
Description
This module contains functions for parsing Haskell modules also
dealing with -XCPP
extension in files.
- parseModuleWithPreprocessor :: [Extension] -> [FilePath] -> Path Abs File -> IO $ (Either ModuleParseException $ Module SrcSpanInfo)
Documentation
parseModuleWithPreprocessor Source #
Arguments
:: [Extension] | List of extensions from .cabal file |
-> [FilePath] | Filenames of .h files to include |
-> Path Abs File | Path to module |
-> IO $ (Either ModuleParseException $ Module SrcSpanInfo) |
Parse module after preproccessing this module with possibly
custom preprocessor. It first calls parsing with CPP, then reads
OPTIONS_GHC
to handle custom preprocessors. Now only autoexporter
supported among all custom preprocessors.