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

Stack.Types.AddCommand

Description

 
Synopsis

Documentation

type AddCommand = ExceptT (RIO Runner ()) (Writer (Mod CommandFields (RIO Runner (), GlobalOptsMonoid))) () Source #

A type synonym for the monad used to add command line commands to Stack. The monad is a stack of an ExceptT (RIO Runner ()) monad on top of a Writer f monad, where f is Mod CommandFields (RIO Runner (), GlobalOptsMonoid) - that is, an option modifier for command options that have return type (RIO Runner (), GlobalOptsMonoid).