{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Google.Protobuf.Wrappers.Polymorphic
( Wrapped(..)
) where
import Control.DeepSeq (NFData)
import Data.Aeson (FromJSON, ToJSON)
import GHC.Generics (Generic)
newtype Wrapped a = Wrapped a
deriving (Wrapped a -> Bool
(a -> m) -> Wrapped a -> m
(a -> b -> b) -> b -> Wrapped a -> b
(forall m. Monoid m => Wrapped m -> m)
-> (forall m a. Monoid m => (a -> m) -> Wrapped a -> m)
-> (forall m a. Monoid m => (a -> m) -> Wrapped a -> m)
-> (forall a b. (a -> b -> b) -> b -> Wrapped a -> b)
-> (forall a b. (a -> b -> b) -> b -> Wrapped a -> b)
-> (forall b a. (b -> a -> b) -> b -> Wrapped a -> b)
-> (forall b a. (b -> a -> b) -> b -> Wrapped a -> b)
-> (forall a. (a -> a -> a) -> Wrapped a -> a)
-> (forall a. (a -> a -> a) -> Wrapped a -> a)
-> (forall a. Wrapped a -> [a])
-> (forall a. Wrapped a -> Bool)
-> (forall a. Wrapped a -> Int)
-> (forall a. Eq a => a -> Wrapped a -> Bool)
-> (forall a. Ord a => Wrapped a -> a)
-> (forall a. Ord a => Wrapped a -> a)
-> (forall a. Num a => Wrapped a -> a)
-> (forall a. Num a => Wrapped a -> a)
-> Foldable Wrapped
forall a. Eq a => a -> Wrapped a -> Bool
forall a. Num a => Wrapped a -> a
forall a. Ord a => Wrapped a -> a
forall m. Monoid m => Wrapped m -> m
forall a. Wrapped a -> Bool
forall a. Wrapped a -> Int
forall a. Wrapped a -> [a]
forall a. (a -> a -> a) -> Wrapped a -> a
forall m a. Monoid m => (a -> m) -> Wrapped a -> m
forall b a. (b -> a -> b) -> b -> Wrapped a -> b
forall a b. (a -> b -> b) -> b -> Wrapped a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
product :: Wrapped a -> a
$cproduct :: forall a. Num a => Wrapped a -> a
sum :: Wrapped a -> a
$csum :: forall a. Num a => Wrapped a -> a
minimum :: Wrapped a -> a
$cminimum :: forall a. Ord a => Wrapped a -> a
maximum :: Wrapped a -> a
$cmaximum :: forall a. Ord a => Wrapped a -> a
elem :: a -> Wrapped a -> Bool
$celem :: forall a. Eq a => a -> Wrapped a -> Bool
length :: Wrapped a -> Int
$clength :: forall a. Wrapped a -> Int
null :: Wrapped a -> Bool
$cnull :: forall a. Wrapped a -> Bool
toList :: Wrapped a -> [a]
$ctoList :: forall a. Wrapped a -> [a]
foldl1 :: (a -> a -> a) -> Wrapped a -> a
$cfoldl1 :: forall a. (a -> a -> a) -> Wrapped a -> a
foldr1 :: (a -> a -> a) -> Wrapped a -> a
$cfoldr1 :: forall a. (a -> a -> a) -> Wrapped a -> a
foldl' :: (b -> a -> b) -> b -> Wrapped a -> b
$cfoldl' :: forall b a. (b -> a -> b) -> b -> Wrapped a -> b
foldl :: (b -> a -> b) -> b -> Wrapped a -> b
$cfoldl :: forall b a. (b -> a -> b) -> b -> Wrapped a -> b
foldr' :: (a -> b -> b) -> b -> Wrapped a -> b
$cfoldr' :: forall a b. (a -> b -> b) -> b -> Wrapped a -> b
foldr :: (a -> b -> b) -> b -> Wrapped a -> b
$cfoldr :: forall a b. (a -> b -> b) -> b -> Wrapped a -> b
foldMap' :: (a -> m) -> Wrapped a -> m
$cfoldMap' :: forall m a. Monoid m => (a -> m) -> Wrapped a -> m
foldMap :: (a -> m) -> Wrapped a -> m
$cfoldMap :: forall m a. Monoid m => (a -> m) -> Wrapped a -> m
fold :: Wrapped m -> m
$cfold :: forall m. Monoid m => Wrapped m -> m
Foldable, a -> Wrapped b -> Wrapped a
(a -> b) -> Wrapped a -> Wrapped b
(forall a b. (a -> b) -> Wrapped a -> Wrapped b)
-> (forall a b. a -> Wrapped b -> Wrapped a) -> Functor Wrapped
forall a b. a -> Wrapped b -> Wrapped a
forall a b. (a -> b) -> Wrapped a -> Wrapped b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
<$ :: a -> Wrapped b -> Wrapped a
$c<$ :: forall a b. a -> Wrapped b -> Wrapped a
fmap :: (a -> b) -> Wrapped a -> Wrapped b
$cfmap :: forall a b. (a -> b) -> Wrapped a -> Wrapped b
Functor, (forall x. Wrapped a -> Rep (Wrapped a) x)
-> (forall x. Rep (Wrapped a) x -> Wrapped a)
-> Generic (Wrapped a)
forall x. Rep (Wrapped a) x -> Wrapped a
forall x. Wrapped a -> Rep (Wrapped a) x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall a x. Rep (Wrapped a) x -> Wrapped a
forall a x. Wrapped a -> Rep (Wrapped a) x
$cto :: forall a x. Rep (Wrapped a) x -> Wrapped a
$cfrom :: forall a x. Wrapped a -> Rep (Wrapped a) x
Generic, Int -> Wrapped a -> ShowS
[Wrapped a] -> ShowS
Wrapped a -> String
(Int -> Wrapped a -> ShowS)
-> (Wrapped a -> String)
-> ([Wrapped a] -> ShowS)
-> Show (Wrapped a)
forall a. Show a => Int -> Wrapped a -> ShowS
forall a. Show a => [Wrapped a] -> ShowS
forall a. Show a => Wrapped a -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Wrapped a] -> ShowS
$cshowList :: forall a. Show a => [Wrapped a] -> ShowS
show :: Wrapped a -> String
$cshow :: forall a. Show a => Wrapped a -> String
showsPrec :: Int -> Wrapped a -> ShowS
$cshowsPrec :: forall a. Show a => Int -> Wrapped a -> ShowS
Show, Functor Wrapped
Foldable Wrapped
Functor Wrapped
-> Foldable Wrapped
-> (forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> Wrapped a -> f (Wrapped b))
-> (forall (f :: * -> *) a.
Applicative f =>
Wrapped (f a) -> f (Wrapped a))
-> (forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> Wrapped a -> m (Wrapped b))
-> (forall (m :: * -> *) a.
Monad m =>
Wrapped (m a) -> m (Wrapped a))
-> Traversable Wrapped
(a -> f b) -> Wrapped a -> f (Wrapped b)
forall (t :: * -> *).
Functor t
-> Foldable t
-> (forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> t a -> f (t b))
-> (forall (f :: * -> *) a. Applicative f => t (f a) -> f (t a))
-> (forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> t a -> m (t b))
-> (forall (m :: * -> *) a. Monad m => t (m a) -> m (t a))
-> Traversable t
forall (m :: * -> *) a. Monad m => Wrapped (m a) -> m (Wrapped a)
forall (f :: * -> *) a.
Applicative f =>
Wrapped (f a) -> f (Wrapped a)
forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> Wrapped a -> m (Wrapped b)
forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> Wrapped a -> f (Wrapped b)
sequence :: Wrapped (m a) -> m (Wrapped a)
$csequence :: forall (m :: * -> *) a. Monad m => Wrapped (m a) -> m (Wrapped a)
mapM :: (a -> m b) -> Wrapped a -> m (Wrapped b)
$cmapM :: forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> Wrapped a -> m (Wrapped b)
sequenceA :: Wrapped (f a) -> f (Wrapped a)
$csequenceA :: forall (f :: * -> *) a.
Applicative f =>
Wrapped (f a) -> f (Wrapped a)
traverse :: (a -> f b) -> Wrapped a -> f (Wrapped b)
$ctraverse :: forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> Wrapped a -> f (Wrapped b)
$cp2Traversable :: Foldable Wrapped
$cp1Traversable :: Functor Wrapped
Traversable)
deriving newtype (Wrapped a
Wrapped a -> Wrapped a -> Bounded (Wrapped a)
forall a. a -> a -> Bounded a
forall a. Bounded a => Wrapped a
maxBound :: Wrapped a
$cmaxBound :: forall a. Bounded a => Wrapped a
minBound :: Wrapped a
$cminBound :: forall a. Bounded a => Wrapped a
Bounded, Int -> Wrapped a
Wrapped a -> Int
Wrapped a -> [Wrapped a]
Wrapped a -> Wrapped a
Wrapped a -> Wrapped a -> [Wrapped a]
Wrapped a -> Wrapped a -> Wrapped a -> [Wrapped a]
(Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a)
-> (Int -> Wrapped a)
-> (Wrapped a -> Int)
-> (Wrapped a -> [Wrapped a])
-> (Wrapped a -> Wrapped a -> [Wrapped a])
-> (Wrapped a -> Wrapped a -> [Wrapped a])
-> (Wrapped a -> Wrapped a -> Wrapped a -> [Wrapped a])
-> Enum (Wrapped a)
forall a. Enum a => Int -> Wrapped a
forall a. Enum a => Wrapped a -> Int
forall a. Enum a => Wrapped a -> [Wrapped a]
forall a. Enum a => Wrapped a -> Wrapped a
forall a. Enum a => Wrapped a -> Wrapped a -> [Wrapped a]
forall a.
Enum a =>
Wrapped a -> Wrapped a -> Wrapped a -> [Wrapped a]
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: Wrapped a -> Wrapped a -> Wrapped a -> [Wrapped a]
$cenumFromThenTo :: forall a.
Enum a =>
Wrapped a -> Wrapped a -> Wrapped a -> [Wrapped a]
enumFromTo :: Wrapped a -> Wrapped a -> [Wrapped a]
$cenumFromTo :: forall a. Enum a => Wrapped a -> Wrapped a -> [Wrapped a]
enumFromThen :: Wrapped a -> Wrapped a -> [Wrapped a]
$cenumFromThen :: forall a. Enum a => Wrapped a -> Wrapped a -> [Wrapped a]
enumFrom :: Wrapped a -> [Wrapped a]
$cenumFrom :: forall a. Enum a => Wrapped a -> [Wrapped a]
fromEnum :: Wrapped a -> Int
$cfromEnum :: forall a. Enum a => Wrapped a -> Int
toEnum :: Int -> Wrapped a
$ctoEnum :: forall a. Enum a => Int -> Wrapped a
pred :: Wrapped a -> Wrapped a
$cpred :: forall a. Enum a => Wrapped a -> Wrapped a
succ :: Wrapped a -> Wrapped a
$csucc :: forall a. Enum a => Wrapped a -> Wrapped a
Enum, Wrapped a -> Wrapped a -> Bool
(Wrapped a -> Wrapped a -> Bool)
-> (Wrapped a -> Wrapped a -> Bool) -> Eq (Wrapped a)
forall a. Eq a => Wrapped a -> Wrapped a -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Wrapped a -> Wrapped a -> Bool
$c/= :: forall a. Eq a => Wrapped a -> Wrapped a -> Bool
== :: Wrapped a -> Wrapped a -> Bool
$c== :: forall a. Eq a => Wrapped a -> Wrapped a -> Bool
Eq, Value -> Parser [Wrapped a]
Value -> Parser (Wrapped a)
(Value -> Parser (Wrapped a))
-> (Value -> Parser [Wrapped a]) -> FromJSON (Wrapped a)
forall a. FromJSON a => Value -> Parser [Wrapped a]
forall a. FromJSON a => Value -> Parser (Wrapped a)
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Wrapped a]
$cparseJSONList :: forall a. FromJSON a => Value -> Parser [Wrapped a]
parseJSON :: Value -> Parser (Wrapped a)
$cparseJSON :: forall a. FromJSON a => Value -> Parser (Wrapped a)
FromJSON, Semigroup (Wrapped a)
Wrapped a
Semigroup (Wrapped a)
-> Wrapped a
-> (Wrapped a -> Wrapped a -> Wrapped a)
-> ([Wrapped a] -> Wrapped a)
-> Monoid (Wrapped a)
[Wrapped a] -> Wrapped a
Wrapped a -> Wrapped a -> Wrapped a
forall a.
Semigroup a -> a -> (a -> a -> a) -> ([a] -> a) -> Monoid a
forall a. Monoid a => Semigroup (Wrapped a)
forall a. Monoid a => Wrapped a
forall a. Monoid a => [Wrapped a] -> Wrapped a
forall a. Monoid a => Wrapped a -> Wrapped a -> Wrapped a
mconcat :: [Wrapped a] -> Wrapped a
$cmconcat :: forall a. Monoid a => [Wrapped a] -> Wrapped a
mappend :: Wrapped a -> Wrapped a -> Wrapped a
$cmappend :: forall a. Monoid a => Wrapped a -> Wrapped a -> Wrapped a
mempty :: Wrapped a
$cmempty :: forall a. Monoid a => Wrapped a
$cp1Monoid :: forall a. Monoid a => Semigroup (Wrapped a)
Monoid,
Wrapped a -> ()
(Wrapped a -> ()) -> NFData (Wrapped a)
forall a. NFData a => Wrapped a -> ()
forall a. (a -> ()) -> NFData a
rnf :: Wrapped a -> ()
$crnf :: forall a. NFData a => Wrapped a -> ()
NFData, Integer -> Wrapped a
Wrapped a -> Wrapped a
Wrapped a -> Wrapped a -> Wrapped a
(Wrapped a -> Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a)
-> (Integer -> Wrapped a)
-> Num (Wrapped a)
forall a. Num a => Integer -> Wrapped a
forall a. Num a => Wrapped a -> Wrapped a
forall a. Num a => Wrapped a -> Wrapped a -> Wrapped a
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
fromInteger :: Integer -> Wrapped a
$cfromInteger :: forall a. Num a => Integer -> Wrapped a
signum :: Wrapped a -> Wrapped a
$csignum :: forall a. Num a => Wrapped a -> Wrapped a
abs :: Wrapped a -> Wrapped a
$cabs :: forall a. Num a => Wrapped a -> Wrapped a
negate :: Wrapped a -> Wrapped a
$cnegate :: forall a. Num a => Wrapped a -> Wrapped a
* :: Wrapped a -> Wrapped a -> Wrapped a
$c* :: forall a. Num a => Wrapped a -> Wrapped a -> Wrapped a
- :: Wrapped a -> Wrapped a -> Wrapped a
$c- :: forall a. Num a => Wrapped a -> Wrapped a -> Wrapped a
+ :: Wrapped a -> Wrapped a -> Wrapped a
$c+ :: forall a. Num a => Wrapped a -> Wrapped a -> Wrapped a
Num, Eq (Wrapped a)
Eq (Wrapped a)
-> (Wrapped a -> Wrapped a -> Ordering)
-> (Wrapped a -> Wrapped a -> Bool)
-> (Wrapped a -> Wrapped a -> Bool)
-> (Wrapped a -> Wrapped a -> Bool)
-> (Wrapped a -> Wrapped a -> Bool)
-> (Wrapped a -> Wrapped a -> Wrapped a)
-> (Wrapped a -> Wrapped a -> Wrapped a)
-> Ord (Wrapped a)
Wrapped a -> Wrapped a -> Bool
Wrapped a -> Wrapped a -> Ordering
Wrapped a -> Wrapped a -> Wrapped a
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
forall a. Ord a => Eq (Wrapped a)
forall a. Ord a => Wrapped a -> Wrapped a -> Bool
forall a. Ord a => Wrapped a -> Wrapped a -> Ordering
forall a. Ord a => Wrapped a -> Wrapped a -> Wrapped a
min :: Wrapped a -> Wrapped a -> Wrapped a
$cmin :: forall a. Ord a => Wrapped a -> Wrapped a -> Wrapped a
max :: Wrapped a -> Wrapped a -> Wrapped a
$cmax :: forall a. Ord a => Wrapped a -> Wrapped a -> Wrapped a
>= :: Wrapped a -> Wrapped a -> Bool
$c>= :: forall a. Ord a => Wrapped a -> Wrapped a -> Bool
> :: Wrapped a -> Wrapped a -> Bool
$c> :: forall a. Ord a => Wrapped a -> Wrapped a -> Bool
<= :: Wrapped a -> Wrapped a -> Bool
$c<= :: forall a. Ord a => Wrapped a -> Wrapped a -> Bool
< :: Wrapped a -> Wrapped a -> Bool
$c< :: forall a. Ord a => Wrapped a -> Wrapped a -> Bool
compare :: Wrapped a -> Wrapped a -> Ordering
$ccompare :: forall a. Ord a => Wrapped a -> Wrapped a -> Ordering
$cp1Ord :: forall a. Ord a => Eq (Wrapped a)
Ord, b -> Wrapped a -> Wrapped a
NonEmpty (Wrapped a) -> Wrapped a
Wrapped a -> Wrapped a -> Wrapped a
(Wrapped a -> Wrapped a -> Wrapped a)
-> (NonEmpty (Wrapped a) -> Wrapped a)
-> (forall b. Integral b => b -> Wrapped a -> Wrapped a)
-> Semigroup (Wrapped a)
forall b. Integral b => b -> Wrapped a -> Wrapped a
forall a. Semigroup a => NonEmpty (Wrapped a) -> Wrapped a
forall a. Semigroup a => Wrapped a -> Wrapped a -> Wrapped a
forall a b.
(Semigroup a, Integral b) =>
b -> Wrapped a -> Wrapped a
forall a.
(a -> a -> a)
-> (NonEmpty a -> a)
-> (forall b. Integral b => b -> a -> a)
-> Semigroup a
stimes :: b -> Wrapped a -> Wrapped a
$cstimes :: forall a b.
(Semigroup a, Integral b) =>
b -> Wrapped a -> Wrapped a
sconcat :: NonEmpty (Wrapped a) -> Wrapped a
$csconcat :: forall a. Semigroup a => NonEmpty (Wrapped a) -> Wrapped a
<> :: Wrapped a -> Wrapped a -> Wrapped a
$c<> :: forall a. Semigroup a => Wrapped a -> Wrapped a -> Wrapped a
Semigroup, [Wrapped a] -> Encoding
[Wrapped a] -> Value
Wrapped a -> Encoding
Wrapped a -> Value
(Wrapped a -> Value)
-> (Wrapped a -> Encoding)
-> ([Wrapped a] -> Value)
-> ([Wrapped a] -> Encoding)
-> ToJSON (Wrapped a)
forall a. ToJSON a => [Wrapped a] -> Encoding
forall a. ToJSON a => [Wrapped a] -> Value
forall a. ToJSON a => Wrapped a -> Encoding
forall a. ToJSON a => Wrapped a -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Wrapped a] -> Encoding
$ctoEncodingList :: forall a. ToJSON a => [Wrapped a] -> Encoding
toJSONList :: [Wrapped a] -> Value
$ctoJSONList :: forall a. ToJSON a => [Wrapped a] -> Value
toEncoding :: Wrapped a -> Encoding
$ctoEncoding :: forall a. ToJSON a => Wrapped a -> Encoding
toJSON :: Wrapped a -> Value
$ctoJSON :: forall a. ToJSON a => Wrapped a -> Value
ToJSON)