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

Stack.IDE

Description

Types and functions related to Stack's ide command.

Synopsis

Documentation

data OutputStream Source #

Constructors

OutputLogInfo

To the same output channel as other log information.

OutputStdout

To the standard output channel.

data ListPackagesCmd Source #

Constructors

ListPackageNames

Package names.

ListPackageCabalFiles

Paths to Cabal files.

idePackagesCmd :: (OutputStream, ListPackagesCmd) -> RIO Runner () Source #

Function underlying the stack ide packages command. List packages in the project.

ideTargetsCmd :: OutputStream -> RIO Runner () Source #

Function underlying the stack ide targets command. List targets in the project.

listPackages :: HasBuildConfig env => OutputStream -> ListPackagesCmd -> RIO env () Source #

List the packages inside the current project.

listTargets :: forall env. HasBuildConfig env => OutputStream -> RIO env () Source #

List the targets in the current project.