importify-1.0: Tool for haskell imports refactoring

Safe HaskellNone
LanguageHaskell2010

Importify.Preprocessor

Description

This module contains functions for parsing Haskell modules also dealing with -XCPP extension in files.

Synopsis

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.