Safe Haskell | None |
---|---|
Language | Haskell2010 |
The entry point of the library
- data Ghci
- data GhciError = UnexpectedExit String String
- data Severity
- data Load
- = Loading {
- loadModule :: String
- loadFile :: FilePath
- | Message {
- loadSeverity :: Severity
- loadFile :: FilePath
- loadFilePos :: (Int, Int)
- loadMessage :: [String]
- = Loading {
- startGhci :: String -> Maybe FilePath -> Bool -> IO (Ghci, [Load])
- showModules :: Ghci -> IO [(String, FilePath)]
- reload :: Ghci -> IO [Load]
- exec :: Ghci -> String -> IO [String]
- stopGhci :: Ghci -> IO ()
Documentation
GHCi shut down
Severity of messages
Load messages
Loading | |
| |
Message | |
|
startGhci :: String -> Maybe FilePath -> Bool -> IO (Ghci, [Load]) Source
Start GHCi, returning a function to perform further operation, as well as the result of the initial loading. Pass True to write out messages produced while loading, useful if invoking something like "cabal repl" which might compile dependent packages before really loading.