Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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.
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
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 # |
data 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 # |