stack-2.14.0: 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 stream as other log information.

OutputStdout

To the standard output stream.

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 :: ((Bool, Bool, Bool), 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 -> (NamedComponent -> Bool) -> RIO env () Source #

List the targets in the current project.