Safe Haskell | None |
---|---|
Language | Haskell2010 |
Run a GHCi configured with the user's project(s).
- data GhciOpts = GhciOpts {
- ghciTargets :: ![Text]
- ghciArgs :: ![String]
- ghciGhcCommand :: !(Maybe FilePath)
- ghciNoLoadModules :: !Bool
- ghciAdditionalPackages :: ![String]
- ghciMainIs :: !(Maybe Text)
- data GhciPkgInfo = GhciPkgInfo {
- ghciPkgName :: PackageName
- ghciPkgOpts :: [String]
- ghciPkgDir :: Path Abs Dir
- ghciPkgModules :: Set ModuleName
- ghciPkgModFiles :: Set (Path Abs File)
- ghciPkgCFiles :: Set (Path Abs File)
- ghciPkgMainIs :: Map NamedComponent (Set (Path Abs File))
- 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])
- 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 | |
|
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.