Safe Haskell | None |
---|---|
Language | Haskell2010 |
These functions are for conveniently implementing the simple CLI
Synopsis
- initializeFlagsWithCradle :: GhcMonad m => FilePath -> Cradle a -> m (CradleLoadResult (m SuccessFlag, ComponentOptions))
- initializeFlagsWithCradleWithMessage :: GhcMonad m => Maybe Messager -> FilePath -> Cradle a -> m (CradleLoadResult (m SuccessFlag, ComponentOptions))
- data SuccessFlag
- withGHC :: FilePath -> Ghc a -> IO a
- withGHC' :: Ghc a -> IO a
- withGhcT :: (ExceptionMonad m, MonadIO m, Monad m) => GhcT m a -> m a
- getSystemLibDir :: IO (Maybe FilePath)
- withDynFlags :: GhcMonad m => (DynFlags -> DynFlags) -> m a -> m a
Documentation
initializeFlagsWithCradle Source #
:: GhcMonad m | |
=> FilePath | The file we are loading the |
-> Cradle a | The cradle we want to load |
-> m (CradleLoadResult (m SuccessFlag, ComponentOptions)) |
Initialize a GHC session by loading a given file into a given cradle.
initializeFlagsWithCradleWithMessage Source #
:: GhcMonad m | |
=> Maybe Messager | |
-> FilePath | The file we are loading the |
-> Cradle a | The cradle we want to load |
-> m (CradleLoadResult (m SuccessFlag, ComponentOptions)) | Whether we actually loaded the cradle or not. |
The same as initializeFlagsWithCradle
but with an additional argument to control
how the loading progress messages are displayed to the user. In haskell-ide-engine
the module loading progress is displayed in the UI by using a progress notification.
data SuccessFlag #
Instances
Outputable SuccessFlag | |
Defined in BasicTypes ppr :: SuccessFlag -> SDoc # pprPrec :: Rational -> SuccessFlag -> SDoc # |