ghc-lib-parser-8.8.1.20191204: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

Hooks

Synopsis

Documentation

emptyHooks :: Hooks Source #

Hooks can be used by GHC API clients to replace parts of the compiler pipeline. If a hook is not installed, GHC uses the default built-in behaviour

lookupHook :: (Hooks -> Maybe a) -> a -> DynFlags -> a Source #

getHooked :: (Functor f, HasDynFlags f) => (Hooks -> Maybe a) -> a -> f a Source #