{-# LANGUAGE NoImplicitPrelude #-}
module Stack.Types.GlobalOptsMonoid
( GlobalOptsMonoid (..)
) where
import Generics.Deriving.Monoid ( mappenddefault, memptydefault )
import Stack.Prelude
import Stack.Types.ConfigMonoid ( ConfigMonoid )
import Stack.Types.DockerEntrypoint ( DockerEntrypoint )
import Stack.Types.LockFileBehavior ( LockFileBehavior )
import Stack.Types.Resolver ( AbstractResolver )
data GlobalOptsMonoid = GlobalOptsMonoid
{ GlobalOptsMonoid -> First String
globalMonoidReExecVersion :: !(First String)
, GlobalOptsMonoid -> First DockerEntrypoint
globalMonoidDockerEntrypoint :: !(First DockerEntrypoint)
, GlobalOptsMonoid -> First LogLevel
globalMonoidLogLevel :: !(First LogLevel)
, GlobalOptsMonoid -> FirstTrue
globalMonoidTimeInLog :: !FirstTrue
, GlobalOptsMonoid -> FirstFalse
globalMonoidRSLInLog :: !FirstFalse
, GlobalOptsMonoid -> FirstFalse
globalMonoidPlanInLog :: !FirstFalse
, GlobalOptsMonoid -> ConfigMonoid
globalMonoidConfigMonoid :: !ConfigMonoid
, GlobalOptsMonoid -> First (Unresolved AbstractResolver)
globalMonoidResolver :: !(First (Unresolved AbstractResolver))
, GlobalOptsMonoid -> First String
globalMonoidResolverRoot :: !(First FilePath)
, GlobalOptsMonoid -> First WantedCompiler
globalMonoidCompiler :: !(First WantedCompiler)
, GlobalOptsMonoid -> First Bool
globalMonoidTerminal :: !(First Bool)
, GlobalOptsMonoid -> StylesUpdate
globalMonoidStyles :: !StylesUpdate
, GlobalOptsMonoid -> First Int
globalMonoidTermWidth :: !(First Int)
, GlobalOptsMonoid -> First String
globalMonoidStackYaml :: !(First FilePath)
, GlobalOptsMonoid -> First LockFileBehavior
globalMonoidLockFileBehavior :: !(First LockFileBehavior)
}
deriving (forall x. GlobalOptsMonoid -> Rep GlobalOptsMonoid x)
-> (forall x. Rep GlobalOptsMonoid x -> GlobalOptsMonoid)
-> Generic GlobalOptsMonoid
forall x. Rep GlobalOptsMonoid x -> GlobalOptsMonoid
forall x. GlobalOptsMonoid -> Rep GlobalOptsMonoid x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. GlobalOptsMonoid -> Rep GlobalOptsMonoid x
from :: forall x. GlobalOptsMonoid -> Rep GlobalOptsMonoid x
$cto :: forall x. Rep GlobalOptsMonoid x -> GlobalOptsMonoid
to :: forall x. Rep GlobalOptsMonoid x -> GlobalOptsMonoid
Generic
instance Semigroup GlobalOptsMonoid where
<> :: GlobalOptsMonoid -> GlobalOptsMonoid -> GlobalOptsMonoid
(<>) = GlobalOptsMonoid -> GlobalOptsMonoid -> GlobalOptsMonoid
forall a. (Generic a, Monoid' (Rep a)) => a -> a -> a
mappenddefault
instance Monoid GlobalOptsMonoid where
mempty :: GlobalOptsMonoid
mempty = GlobalOptsMonoid
forall a. (Generic a, Monoid' (Rep a)) => a
memptydefault
mappend :: GlobalOptsMonoid -> GlobalOptsMonoid -> GlobalOptsMonoid
mappend = GlobalOptsMonoid -> GlobalOptsMonoid -> GlobalOptsMonoid
forall a. Semigroup a => a -> a -> a
(<>)