Safe Haskell | None |
---|---|
Language | Haskell2010 |
Run a GHCi configured with the user's package(s).
- data GhciOpts = GhciOpts {
- ghciNoBuild :: !Bool
- ghciArgs :: ![String]
- ghciGhcCommand :: !(Maybe FilePath)
- ghciNoLoadModules :: !Bool
- ghciAdditionalPackages :: ![String]
- ghciMainIs :: !(Maybe Text)
- ghciLoadLocalDeps :: !Bool
- ghciSkipIntermediate :: !Bool
- ghciHidePackages :: !Bool
- ghciBuildOpts :: !BuildOpts
- data GhciPkgInfo = GhciPkgInfo {
- ghciPkgName :: !PackageName
- ghciPkgOpts :: ![(NamedComponent, BuildInfoOpts)]
- ghciPkgDir :: !(Path Abs Dir)
- ghciPkgModules :: !(Set ModuleName)
- ghciPkgModFiles :: !(Set (Path Abs File))
- ghciPkgCFiles :: !(Set (Path Abs File))
- ghciPkgMainIs :: !(Map NamedComponent (Set (Path Abs File)))
- ghciPkgPackage :: !Package
- data GhciException
- 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) => GhciOpts -> m (Map PackageName SimpleTarget, Maybe (Map PackageName SimpleTarget), [GhciPkgInfo])
- 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 ()
Documentation
Command-line options for GHC.
GhciOpts | |
|
data GhciPkgInfo Source
Necessary information to load a package or its components.
GhciPkgInfo | |
|
data GhciException Source
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) => GhciOpts -> 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 package targets with the given options and configure it with the load paths and extensions of those targets.