{-# LANGUAGE NoImplicitPrelude #-}
module Stack.Types.GlobalOpts
( GlobalOpts (..)
, globalOptsBuildOptsMonoidL
) where
import Stack.Prelude
import Stack.Types.BuildOpts ( BuildOptsMonoid )
import Stack.Types.ConfigMonoid ( ConfigMonoid (..) )
import Stack.Types.DockerEntrypoint ( DockerEntrypoint )
import Stack.Types.LockFileBehavior ( LockFileBehavior )
import Stack.Types.Resolver ( AbstractResolver )
import Stack.Types.StackYamlLoc ( StackYamlLoc )
data GlobalOpts = GlobalOpts
{ GlobalOpts -> Maybe String
globalReExecVersion :: !(Maybe String)
, GlobalOpts -> Maybe DockerEntrypoint
globalDockerEntrypoint :: !(Maybe DockerEntrypoint)
, GlobalOpts -> LogLevel
globalLogLevel :: !LogLevel
, GlobalOpts -> Bool
globalTimeInLog :: !Bool
, GlobalOpts -> Bool
globalRSLInLog :: !Bool
, GlobalOpts -> Bool
globalPlanInLog :: !Bool
, GlobalOpts -> ConfigMonoid
globalConfigMonoid :: !ConfigMonoid
, GlobalOpts -> Maybe AbstractResolver
globalResolver :: !(Maybe AbstractResolver)
, GlobalOpts -> Maybe WantedCompiler
globalCompiler :: !(Maybe WantedCompiler)
, GlobalOpts -> Bool
globalTerminal :: !Bool
, GlobalOpts -> StylesUpdate
globalStylesUpdate :: !StylesUpdate
, GlobalOpts -> Maybe Int
globalTermWidth :: !(Maybe Int)
, GlobalOpts -> StackYamlLoc
globalStackYaml :: !StackYamlLoc
, GlobalOpts -> LockFileBehavior
globalLockFileBehavior :: !LockFileBehavior
}
deriving Int -> GlobalOpts -> ShowS
[GlobalOpts] -> ShowS
GlobalOpts -> String
(Int -> GlobalOpts -> ShowS)
-> (GlobalOpts -> String)
-> ([GlobalOpts] -> ShowS)
-> Show GlobalOpts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GlobalOpts -> ShowS
showsPrec :: Int -> GlobalOpts -> ShowS
$cshow :: GlobalOpts -> String
show :: GlobalOpts -> String
$cshowList :: [GlobalOpts] -> ShowS
showList :: [GlobalOpts] -> ShowS
Show
globalOptsBuildOptsMonoidL :: Lens' GlobalOpts BuildOptsMonoid
globalOptsBuildOptsMonoidL :: Lens' GlobalOpts BuildOptsMonoid
globalOptsBuildOptsMonoidL =
(GlobalOpts -> ConfigMonoid)
-> (GlobalOpts -> ConfigMonoid -> GlobalOpts)
-> Lens GlobalOpts GlobalOpts ConfigMonoid ConfigMonoid
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
lens
GlobalOpts -> ConfigMonoid
globalConfigMonoid
(\GlobalOpts
x ConfigMonoid
y -> GlobalOpts
x { globalConfigMonoid :: ConfigMonoid
globalConfigMonoid = ConfigMonoid
y })
((ConfigMonoid -> f ConfigMonoid) -> GlobalOpts -> f GlobalOpts)
-> ((BuildOptsMonoid -> f BuildOptsMonoid)
-> ConfigMonoid -> f ConfigMonoid)
-> (BuildOptsMonoid -> f BuildOptsMonoid)
-> GlobalOpts
-> f GlobalOpts
forall b c a. (b -> c) -> (a -> b) -> a -> c
.
(ConfigMonoid -> BuildOptsMonoid)
-> (ConfigMonoid -> BuildOptsMonoid -> ConfigMonoid)
-> Lens ConfigMonoid ConfigMonoid BuildOptsMonoid BuildOptsMonoid
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
lens
ConfigMonoid -> BuildOptsMonoid
configMonoidBuildOpts
(\ConfigMonoid
x BuildOptsMonoid
y -> ConfigMonoid
x { configMonoidBuildOpts :: BuildOptsMonoid
configMonoidBuildOpts = BuildOptsMonoid
y })