Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Types and functions related to Stack's ghci
and repl
commands.
Synopsis
- data GhciOpts = GhciOpts {
- ghciTargets :: ![Text]
- ghciArgs :: ![String]
- ghciGhcOptions :: ![String]
- ghciFlags :: !(Map ApplyCLIFlag (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 :: ![Path Abs File]
- ghciPkgMainIs :: !(Map NamedComponent [Path Abs File])
- ghciPkgTargetFiles :: !(Maybe [Path Abs File])
- ghciPkgPackage :: !Package
- data GhciException
- newtype GhciPrettyException = GhciTargetParseException [StyleDoc]
- ghciCmd :: GhciOpts -> RIO Runner ()
- ghci :: HasEnvConfig env => GhciOpts -> RIO env ()
Documentation
Typre respresenting command line options for the stack ghci
and
stack repl
commands.
GhciOpts | |
|
data GhciPkgInfo Source #
Type representing information required to load a package or its components.
NOTE: GhciPkgInfo has paths as list instead of a Set to preserve files order as a workaround for bug https://ghc.haskell.org/trac/ghc/ticket/13786
GhciPkgInfo | |
|
Instances
Show GhciPkgInfo Source # | |
Defined in Stack.Ghci showsPrec :: Int -> GhciPkgInfo -> ShowS # show :: GhciPkgInfo -> String # showList :: [GhciPkgInfo] -> ShowS # |
data GhciException Source #
Type representing exceptions thrown by functions exported by the Stack.Ghci module.
InvalidPackageOption String | |
LoadingDuplicateModules | |
MissingFileTarget String | |
Can'tSpecifyFilesAndTargets | |
Can'tSpecifyFilesAndMainIs |
Instances
Exception GhciException Source # | |
Defined in Stack.Ghci | |
Show GhciException Source # | |
Defined in Stack.Ghci showsPrec :: Int -> GhciException -> ShowS # show :: GhciException -> String # showList :: [GhciException] -> ShowS # |
newtype GhciPrettyException Source #
Type representing 'pretty' exceptions thrown by functions exported by the Stack.Ghci module.
Instances
Exception GhciPrettyException Source # | |
Defined in Stack.Ghci | |
Show GhciPrettyException Source # | |
Defined in Stack.Ghci showsPrec :: Int -> GhciPrettyException -> ShowS # show :: GhciPrettyException -> String # showList :: [GhciPrettyException] -> ShowS # | |
Pretty GhciPrettyException Source # | |
Defined in Stack.Ghci pretty :: GhciPrettyException -> StyleDoc # |