| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Stack.Ghci
Description
Run a GHCi configured with the user's package(s).
Synopsis
- 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 :: !(Maybe Bool)
 - ghciNoBuild :: !Bool
 - ghciOnlyMain :: !Bool
 
 - data GhciPkgInfo = GhciPkgInfo {
- ghciPkgName :: !PackageName
 - ghciPkgOpts :: ![(NamedComponent, BuildInfoOpts)]
 - ghciPkgDir :: !(Path Abs Dir)
 - ghciPkgModules :: !ModuleMap
 - ghciPkgCFiles :: !(Set (Path Abs File))
 - ghciPkgMainIs :: !(Map NamedComponent (Set (Path Abs File)))
 - ghciPkgTargetFiles :: !(Maybe (Set (Path Abs File)))
 - ghciPkgPackage :: !Package
 
 - data GhciException
 - ghci :: HasEnvConfig env => GhciOpts -> RIO env ()
 
Documentation
Command-line options for GHC.
Constructors
| GhciOpts | |
Fields 
  | |
data GhciPkgInfo Source #
Necessary information to load a package or its components.
Constructors
| GhciPkgInfo | |
Fields 
  | |
Instances
| Show GhciPkgInfo Source # | |
Defined in Stack.Ghci Methods showsPrec :: Int -> GhciPkgInfo -> ShowS # show :: GhciPkgInfo -> String # showList :: [GhciPkgInfo] -> ShowS #  | |
data GhciException Source #
Constructors
| InvalidPackageOption String | |
| LoadingDuplicateModules | |
| MissingFileTarget String | |
| Can'tSpecifyFilesAndTargets | |
| Can'tSpecifyFilesAndMainIs | |
| GhciTargetParseException [Text] | 
Instances
| Show GhciException Source # | |
Defined in Stack.Ghci Methods showsPrec :: Int -> GhciException -> ShowS # show :: GhciException -> String # showList :: [GhciException] -> ShowS #  | |
| Exception GhciException Source # | |
Defined in Stack.Ghci Methods toException :: GhciException -> SomeException # fromException :: SomeException -> Maybe GhciException # displayException :: GhciException -> String #  | |