Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Ghcid
Description
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
Constructors
UnexpectedExit String String |
Severity of messages
Load messages
Constructors
Loading | |
Fields
| |
Message | |
Fields
|
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.