hie-bios-0.2.1: Set up a GHC API session

Safe HaskellNone
LanguageHaskell2010

HIE.Bios.Ghc.Logger

Synopsis

Documentation

withLogger :: GhcMonad m => Options -> (DynFlags -> DynFlags) -> m () -> m (Either String String) Source #

Set the session flag (e.g. "-Wall" or "-w:") then executes a body. Log messages are returned as String. Right is success and Left is failure.