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

Stack.Clean

Description

Types and functions related to Stack's clean and purge commands.

Synopsis

Documentation

data CleanOpts Source #

Type representing command line options for the stack clean command.

Constructors

CleanShallow [PackageName]

Delete the "dist directories" as defined in distRelativeDir for the given local packages. If no packages are given, all project packages should be cleaned.

CleanFull

Delete all work directories in the project.

data CleanCommand Source #

Type representing Stack's cleaning commands.

Constructors

Clean 
Purge 

cleanCmd :: CleanOpts -> RIO Runner () Source #

Function underlying the stack clean command.

clean :: CleanOpts -> RIO Config () Source #

Deletes build artifacts in the current project.