stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2024

Stack.Ghci

Description

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

Synopsis

Documentation

data GhciOpts Source #

Type respresenting command line options for Stack's ghci and repl commands.

Instances

Instances details
Show GhciOpts Source # 
Instance details

Defined in Stack.Types.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

Instances details
Show GhciPkgInfo Source # 
Instance details

Defined in Stack.Ghci

type ModuleMap = Map ModuleName (Map (Path Abs File) (Set (PackageName, NamedComponent))) Source #

Type synonym representing maps from a module name to a map with all of the paths that use that name. Each of those paths is associated with a set of components that contain it.

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.