Safe Haskell | None |
---|---|
Language | GHC2021 |
Stack.Ghci
Description
Types and functions related to Stack's ghci
and repl
commands.
Synopsis
- data GhciOpts = GhciOpts {
- targets :: ![Text]
- args :: ![String]
- ghcOptions :: ![String]
- flags :: !(Map ApplyCLIFlag (Map FlagName Bool))
- ghcCommand :: !(Maybe FilePath)
- noLoadModules :: !Bool
- additionalPackages :: ![String]
- mainIs :: !(Maybe Text)
- loadLocalDeps :: !Bool
- hidePackages :: !(Maybe Bool)
- noBuild :: !Bool
- onlyMain :: !Bool
- data GhciPkgInfo = GhciPkgInfo {}
- data GhciException
- data GhciPrettyException
- ghciCmd :: GhciOpts -> RIO Runner ()
- ghci :: HasEnvConfig env => GhciOpts -> RIO env ()
Documentation
Typre respresenting command line options for the stack ghci
and
stack repl
commands.
Constructors
GhciOpts | |
Fields
|
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
Constructors
GhciPkgInfo | |
Instances
Show GhciPkgInfo Source # | |
Defined in Stack.Ghci Methods 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.
Constructors
InvalidPackageOption !String | |
LoadingDuplicateModules | |
MissingFileTarget !String | |
Can'tSpecifyFilesAndTargets | |
Can'tSpecifyFilesAndMainIs |
Instances
Exception GhciException Source # | |
Defined in Stack.Ghci Methods toException :: GhciException -> SomeException # fromException :: SomeException -> Maybe GhciException # displayException :: GhciException -> String # | |
Show GhciException Source # | |
Defined in Stack.Ghci Methods showsPrec :: Int -> GhciException -> ShowS # show :: GhciException -> String # showList :: [GhciException] -> ShowS # |
data GhciPrettyException Source #
Type representing 'pretty' exceptions thrown by functions exported by the Stack.Ghci module.
Constructors
GhciTargetParseException ![StyleDoc] | |
CandidatesIndexOutOfRangeBug |
Instances
Exception GhciPrettyException Source # | |
Defined in Stack.Ghci Methods toException :: GhciPrettyException -> SomeException # fromException :: SomeException -> Maybe GhciPrettyException # | |
Show GhciPrettyException Source # | |
Defined in Stack.Ghci Methods showsPrec :: Int -> GhciPrettyException -> ShowS # show :: GhciPrettyException -> String # showList :: [GhciPrettyException] -> ShowS # | |
Pretty GhciPrettyException Source # | |
Defined in Stack.Ghci Methods pretty :: GhciPrettyException -> StyleDoc # |