ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

Hooks

Synopsis

Documentation

emptyHooks :: HooksSource

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 -> aSource

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