Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- doCpp :: Logger -> TmpFs -> DynFlags -> UnitEnv -> CppOpts -> FilePath -> FilePath -> IO ()
- data CppOpts = CppOpts {}
- getGhcVersionPathName :: DynFlags -> UnitEnv -> IO FilePath
- applyCDefs :: DefunctionalizedCDefs -> Logger -> DynFlags -> IO [String]
- offsetIncludePaths :: DynFlags -> IncludeSpecs -> IncludeSpecs
Documentation
doCpp :: Logger -> TmpFs -> DynFlags -> UnitEnv -> CppOpts -> FilePath -> FilePath -> IO () Source #
Run either the Haskell preprocessor, JavaScript preprocessor
or the C preprocessor, as per the CppOpts
passed.
See Note [Preprocessing invocations].
UnitEnv is needed to compute MIN_VERSION macros
If you change the macros defined by this function make sure to update the user guide.
CppOpts | |
|
getGhcVersionPathName :: DynFlags -> UnitEnv -> IO FilePath Source #
Find out path to ghcversion.h
file
applyCDefs :: DefunctionalizedCDefs -> Logger -> DynFlags -> IO [String] Source #