Safe Haskell | None |
---|---|
Language | Haskell2010 |
The HIE Bios
Synopsis
- data Cradle = Cradle {}
- findCradle :: FilePath -> IO Cradle
- defaultCradle :: FilePath -> Cradle
- initializeFlagsWithCradle :: GhcMonad m => FilePath -> Cradle -> m ()
- initializeFlagsWithCradleWithMessage :: GhcMonad m => Maybe Messager -> FilePath -> Cradle -> m ()
- loadFile :: GhcMonad m => (FilePath, FilePath) -> m (Maybe TypecheckedModule, [TypecheckedModule])
- loadFileWithMessage :: GhcMonad m => Maybe Messager -> (FilePath, FilePath) -> m (Maybe TypecheckedModule, [TypecheckedModule])
- withGhcT :: (ExceptionMonad m, MonadIO m, Monad m) => GhcT m a -> m a
Initialise a session
The environment where this library is used.
Cradle | |
|
defaultCradle :: FilePath -> Cradle Source #
initializeFlagsWithCradleWithMessage :: GhcMonad m => Maybe Messager -> FilePath -> Cradle -> m () Source #
Load a module into a session
loadFile :: GhcMonad m => (FilePath, FilePath) -> m (Maybe TypecheckedModule, [TypecheckedModule]) Source #
:: GhcMonad m | |
=> Maybe Messager | |
-> (FilePath, FilePath) | A target file. |
-> m (Maybe TypecheckedModule, [TypecheckedModule]) |
Obtaining type of a target expression. (GHCi's type:)