{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
module Distribution.Types.SetupBuildInfo (
SetupBuildInfo(..)
) where
import Prelude ()
import Distribution.Compat.Prelude
import Distribution.Types.Dependency
data SetupBuildInfo = SetupBuildInfo
{ SetupBuildInfo -> [Dependency]
setupDepends :: [Dependency]
, SetupBuildInfo -> Bool
defaultSetupDepends :: Bool
}
deriving ((forall x. SetupBuildInfo -> Rep SetupBuildInfo x)
-> (forall x. Rep SetupBuildInfo x -> SetupBuildInfo)
-> Generic SetupBuildInfo
forall x. Rep SetupBuildInfo x -> SetupBuildInfo
forall x. SetupBuildInfo -> Rep SetupBuildInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. SetupBuildInfo -> Rep SetupBuildInfo x
from :: forall x. SetupBuildInfo -> Rep SetupBuildInfo x
$cto :: forall x. Rep SetupBuildInfo x -> SetupBuildInfo
to :: forall x. Rep SetupBuildInfo x -> SetupBuildInfo
Generic, Int -> SetupBuildInfo -> ShowS
[SetupBuildInfo] -> ShowS
SetupBuildInfo -> String
(Int -> SetupBuildInfo -> ShowS)
-> (SetupBuildInfo -> String)
-> ([SetupBuildInfo] -> ShowS)
-> Show SetupBuildInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SetupBuildInfo -> ShowS
showsPrec :: Int -> SetupBuildInfo -> ShowS
$cshow :: SetupBuildInfo -> String
show :: SetupBuildInfo -> String
$cshowList :: [SetupBuildInfo] -> ShowS
showList :: [SetupBuildInfo] -> ShowS
Show, SetupBuildInfo -> SetupBuildInfo -> Bool
(SetupBuildInfo -> SetupBuildInfo -> Bool)
-> (SetupBuildInfo -> SetupBuildInfo -> Bool) -> Eq SetupBuildInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SetupBuildInfo -> SetupBuildInfo -> Bool
== :: SetupBuildInfo -> SetupBuildInfo -> Bool
$c/= :: SetupBuildInfo -> SetupBuildInfo -> Bool
/= :: SetupBuildInfo -> SetupBuildInfo -> Bool
Eq, Eq SetupBuildInfo
Eq SetupBuildInfo =>
(SetupBuildInfo -> SetupBuildInfo -> Ordering)
-> (SetupBuildInfo -> SetupBuildInfo -> Bool)
-> (SetupBuildInfo -> SetupBuildInfo -> Bool)
-> (SetupBuildInfo -> SetupBuildInfo -> Bool)
-> (SetupBuildInfo -> SetupBuildInfo -> Bool)
-> (SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo)
-> (SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo)
-> Ord SetupBuildInfo
SetupBuildInfo -> SetupBuildInfo -> Bool
SetupBuildInfo -> SetupBuildInfo -> Ordering
SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: SetupBuildInfo -> SetupBuildInfo -> Ordering
compare :: SetupBuildInfo -> SetupBuildInfo -> Ordering
$c< :: SetupBuildInfo -> SetupBuildInfo -> Bool
< :: SetupBuildInfo -> SetupBuildInfo -> Bool
$c<= :: SetupBuildInfo -> SetupBuildInfo -> Bool
<= :: SetupBuildInfo -> SetupBuildInfo -> Bool
$c> :: SetupBuildInfo -> SetupBuildInfo -> Bool
> :: SetupBuildInfo -> SetupBuildInfo -> Bool
$c>= :: SetupBuildInfo -> SetupBuildInfo -> Bool
>= :: SetupBuildInfo -> SetupBuildInfo -> Bool
$cmax :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
max :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
$cmin :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
min :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
Ord, ReadPrec [SetupBuildInfo]
ReadPrec SetupBuildInfo
Int -> ReadS SetupBuildInfo
ReadS [SetupBuildInfo]
(Int -> ReadS SetupBuildInfo)
-> ReadS [SetupBuildInfo]
-> ReadPrec SetupBuildInfo
-> ReadPrec [SetupBuildInfo]
-> Read SetupBuildInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS SetupBuildInfo
readsPrec :: Int -> ReadS SetupBuildInfo
$creadList :: ReadS [SetupBuildInfo]
readList :: ReadS [SetupBuildInfo]
$creadPrec :: ReadPrec SetupBuildInfo
readPrec :: ReadPrec SetupBuildInfo
$creadListPrec :: ReadPrec [SetupBuildInfo]
readListPrec :: ReadPrec [SetupBuildInfo]
Read, Typeable, Typeable SetupBuildInfo
Typeable SetupBuildInfo =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SetupBuildInfo -> c SetupBuildInfo)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SetupBuildInfo)
-> (SetupBuildInfo -> Constr)
-> (SetupBuildInfo -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SetupBuildInfo))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SetupBuildInfo))
-> ((forall b. Data b => b -> b)
-> SetupBuildInfo -> SetupBuildInfo)
-> (forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r)
-> (forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r)
-> (forall u.
(forall d. Data d => d -> u) -> SetupBuildInfo -> [u])
-> (forall u.
Int -> (forall d. Data d => d -> u) -> SetupBuildInfo -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo)
-> Data SetupBuildInfo
SetupBuildInfo -> Constr
SetupBuildInfo -> DataType
(forall b. Data b => b -> b) -> SetupBuildInfo -> SetupBuildInfo
forall a.
Typeable a =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> SetupBuildInfo -> u
forall u. (forall d. Data d => d -> u) -> SetupBuildInfo -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SetupBuildInfo
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SetupBuildInfo -> c SetupBuildInfo
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SetupBuildInfo)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SetupBuildInfo)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SetupBuildInfo -> c SetupBuildInfo
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SetupBuildInfo -> c SetupBuildInfo
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SetupBuildInfo
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SetupBuildInfo
$ctoConstr :: SetupBuildInfo -> Constr
toConstr :: SetupBuildInfo -> Constr
$cdataTypeOf :: SetupBuildInfo -> DataType
dataTypeOf :: SetupBuildInfo -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SetupBuildInfo)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SetupBuildInfo)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SetupBuildInfo)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SetupBuildInfo)
$cgmapT :: (forall b. Data b => b -> b) -> SetupBuildInfo -> SetupBuildInfo
gmapT :: (forall b. Data b => b -> b) -> SetupBuildInfo -> SetupBuildInfo
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
gmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SetupBuildInfo -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> SetupBuildInfo -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> SetupBuildInfo -> [u]
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> SetupBuildInfo -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> SetupBuildInfo -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SetupBuildInfo -> m SetupBuildInfo
Data)
instance Binary SetupBuildInfo
instance Structured SetupBuildInfo
instance NFData SetupBuildInfo where rnf :: SetupBuildInfo -> ()
rnf = SetupBuildInfo -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Monoid SetupBuildInfo where
mempty :: SetupBuildInfo
mempty = [Dependency] -> Bool -> SetupBuildInfo
SetupBuildInfo [] Bool
False
mappend :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
mappend = SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
forall a. Semigroup a => a -> a -> a
(<>)
instance Semigroup SetupBuildInfo where
SetupBuildInfo
a <> :: SetupBuildInfo -> SetupBuildInfo -> SetupBuildInfo
<> SetupBuildInfo
b = [Dependency] -> Bool -> SetupBuildInfo
SetupBuildInfo
(SetupBuildInfo -> [Dependency]
setupDepends SetupBuildInfo
a [Dependency] -> [Dependency] -> [Dependency]
forall a. Semigroup a => a -> a -> a
<> SetupBuildInfo -> [Dependency]
setupDepends SetupBuildInfo
b)
(SetupBuildInfo -> Bool
defaultSetupDepends SetupBuildInfo
a Bool -> Bool -> Bool
|| SetupBuildInfo -> Bool
defaultSetupDepends SetupBuildInfo
b)