stack-0.1.5.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Ghci

Description

Run a GHCi configured with the user's project(s).

Synopsis

Documentation

data GhciOpts Source

Command-line options for GHC.

data GhciPkgInfo Source

Necessary information to load a package or its components.

ghciSetup :: (HasConfig r, HasHttpManager r, HasBuildConfig r, MonadMask m, HasTerminal r, HasLogLevel r, HasEnvConfig r, MonadReader r m, MonadIO m, MonadThrow m, MonadLogger m, MonadCatch m, MonadBaseControl IO m) => Maybe Text -> [Text] -> m (Map PackageName SimpleTarget, Maybe (Map PackageName SimpleTarget), [GhciPkgInfo]) Source

Create a list of infos for each target containing necessary information to load that package/components.

ghci :: (HasConfig r, HasBuildConfig r, HasHttpManager r, MonadMask m, HasLogLevel r, HasTerminal r, HasEnvConfig r, MonadReader r m, MonadIO m, MonadThrow m, MonadLogger m, MonadCatch m, MonadBaseControl IO m) => GhciOpts -> m () Source

Launch a GHCi session for the given local project targets with the given options and configure it with the load paths and extensions of those targets.