ghcid-0.5.1: 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

data Load Source

Load 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.

stopGhci :: Ghci -> IO () Source

Stop GHCi

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