Safe Haskell | None |
---|---|
Language | Haskell2010 |
The entry point of the library
- data Ghci
- data GhciError = UnexpectedExit String String
- data Load
- = Loading {
- loadModule :: String
- loadFile :: FilePath
- | Message {
- loadSeverity :: Severity
- loadFile :: FilePath
- loadFilePos :: (Int, Int)
- loadMessage :: [String]
- = Loading {
- data Severity
- startGhci :: String -> Maybe FilePath -> Bool -> IO (Ghci, [Load])
- stopGhci :: Ghci -> IO ()
- showModules :: Ghci -> IO [(String, FilePath)]
- reload :: Ghci -> IO [Load]
- exec :: Ghci -> String -> IO [String]
Documentation
GHCi shut down
Load messages
Loading | |
| |
Message | |
|
Severity of messages
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.