stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.IDE

Description

Types and functions related to Stack's ide command.

Synopsis

Documentation

data OutputStream Source #

Type representing output stream choices for the stack ide packages and stack ide targets commands.

Constructors

OutputLogInfo

To the same output stream as other log information.

OutputStdout

To the standard output stream.

data ListPackagesCmd Source #

Type representing output choices for the stack ide packages command.

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

List the targets in the current project.