stack-3.1.1: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Ghci

Description

Types and functions related to Stack's ghci and repl commands.

Synopsis

Documentation

data GhciOpts Source #

Typre respresenting command line options for the stack ghci and stack repl commands.

Instances

Instances details
Show GhciOpts Source # 
Instance details

Defined in Stack.Ghci

Methods

showsPrec :: Int -> GhciOpts -> ShowS #

show :: GhciOpts -> String #

showList :: [GhciOpts] -> ShowS #

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 

Fields

Instances

Instances details
Show GhciPkgInfo Source # 
Instance details

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.

Instances

Instances details
Exception GhciException Source # 
Instance details

Defined in Stack.Ghci

Show GhciException Source # 
Instance details

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.

ghciCmd :: GhciOpts -> RIO Runner () Source #

Function underlying the stack ghci and stack repl commands. Run GHCi in the context of a project.

ghci :: HasEnvConfig env => GhciOpts -> RIO env () Source #

Launch a GHCi session for the given project package targets with the given options and configure it with the load paths and extensions of those targets.