Safe Haskell | None |
---|---|
Language | Haskell2010 |
Run a GHCi configured with the user's package(s).
- data GhciOpts = GhciOpts {
- ghciTargets :: ![Text]
- ghciArgs :: ![String]
- ghciGhcOptions :: ![Text]
- ghciFlags :: !(Map (Maybe PackageName) (Map FlagName Bool))
- ghciGhcCommand :: !(Maybe FilePath)
- ghciNoLoadModules :: !Bool
- ghciAdditionalPackages :: ![String]
- ghciMainIs :: !(Maybe Text)
- ghciLoadLocalDeps :: !Bool
- ghciSkipIntermediate :: !Bool
- ghciHidePackages :: !Bool
- ghciNoBuild :: !Bool
- 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)))
- ghciPkgTargetFiles :: !(Maybe (Set (Path Abs File)))
- ghciPkgPackage :: !Package
- data GhciException
- ghci :: (StackM r m, HasEnvConfig r, MonadBaseUnlift IO m) => GhciOpts -> m ()
- renderScriptGhci :: [GhciPkgInfo] -> Maybe (Path Abs File) -> [Path Abs File] -> GhciScript
- renderScriptIntero :: [GhciPkgInfo] -> Maybe (Path Abs File) -> [Path Abs File] -> GhciScript
Documentation
Command-line options for GHC.
GhciOpts | |
|
data GhciPkgInfo Source #
Necessary information to load a package or its components.
GhciPkgInfo | |
|
data GhciException Source #
ghci :: (StackM r m, HasEnvConfig r, MonadBaseUnlift 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.
renderScriptGhci :: [GhciPkgInfo] -> Maybe (Path Abs File) -> [Path Abs File] -> GhciScript Source #
renderScriptIntero :: [GhciPkgInfo] -> Maybe (Path Abs File) -> [Path Abs File] -> GhciScript Source #