ghcid-0.5: GHCi based bare bones IDE

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Ghcid

Description

The entry point of the library

Synopsis

Documentation

data Ghci Source

A GHCi session. Created with startGhci.

data GhciError Source

GHCi shut down

Instances

data Severity Source

Severity of messages

Constructors

Warning 
Error 

data Load Source

Load messages

Instances

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.

showModules :: Ghci -> IO [(String, FilePath)] Source

Show modules

reload :: Ghci -> IO [Load] Source

reload modules

exec :: Ghci -> String -> IO [String] Source

Send a command, get lines of result

stopGhci :: Ghci -> IO () Source

Stop GHCi