proto3-suite-0.7.0: A higher-level API to the proto3-wire library
Safe HaskellNone
LanguageHaskell2010

Google.Protobuf.Wrappers.Polymorphic

Synopsis

Documentation

newtype Wrapped a Source #

A Haskell type representing the standard protobuf wrapper message that is associated with the given Haskell type.

Note that if Google ever adds wrappers for "sint..." or "...fixed..." then this newtype could still be used, provided its type parameter involves the appropriate combination of Signed and/or Fixed. Because the latter two types are themselves newtypes, the corresponding coercions should work.

Constructors

Wrapped a 

Instances

Instances details
Functor Wrapped Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

fmap :: (a -> b) -> Wrapped a -> Wrapped b Source #

(<$) :: a -> Wrapped b -> Wrapped a Source #

Foldable Wrapped Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

fold :: Monoid m => Wrapped m -> m Source #

foldMap :: Monoid m => (a -> m) -> Wrapped a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Wrapped a -> m Source #

foldr :: (a -> b -> b) -> b -> Wrapped a -> b Source #

foldr' :: (a -> b -> b) -> b -> Wrapped a -> b Source #

foldl :: (b -> a -> b) -> b -> Wrapped a -> b Source #

foldl' :: (b -> a -> b) -> b -> Wrapped a -> b Source #

foldr1 :: (a -> a -> a) -> Wrapped a -> a Source #

foldl1 :: (a -> a -> a) -> Wrapped a -> a Source #

toList :: Wrapped a -> [a] Source #

null :: Wrapped a -> Bool Source #

length :: Wrapped a -> Int Source #

elem :: Eq a => a -> Wrapped a -> Bool Source #

maximum :: Ord a => Wrapped a -> a Source #

minimum :: Ord a => Wrapped a -> a Source #

sum :: Num a => Wrapped a -> a Source #

product :: Num a => Wrapped a -> a Source #

Traversable Wrapped Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

traverse :: Applicative f => (a -> f b) -> Wrapped a -> f (Wrapped b) Source #

sequenceA :: Applicative f => Wrapped (f a) -> f (Wrapped a) Source #

mapM :: Monad m => (a -> m b) -> Wrapped a -> m (Wrapped b) Source #

sequence :: Monad m => Wrapped (m a) -> m (Wrapped a) Source #

Bounded a => Bounded (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Enum a => Enum (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Eq a => Eq (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

(==) :: Wrapped a -> Wrapped a -> Bool Source #

(/=) :: Wrapped a -> Wrapped a -> Bool Source #

Num a => Num (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Ord a => Ord (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Show a => Show (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Generic (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Associated Types

type Rep (Wrapped a) :: Type -> Type Source #

Methods

from :: Wrapped a -> Rep (Wrapped a) x Source #

to :: Rep (Wrapped a) x -> Wrapped a Source #

Semigroup a => Semigroup (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

(<>) :: Wrapped a -> Wrapped a -> Wrapped a Source #

sconcat :: NonEmpty (Wrapped a) -> Wrapped a Source #

stimes :: Integral b => b -> Wrapped a -> Wrapped a Source #

Monoid a => Monoid (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

ToJSON a => ToJSON (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

FromJSON a => FromJSON (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

NFData a => NFData (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

Methods

rnf :: Wrapped a -> () Source #

ToSchema a => ToSchema (Wrapped a) Source # 
Instance details

Defined in Proto3.Suite.DotProto.Generate.Swagger

(MessageField a, Primitive a) => Message (Wrapped a) Source # 
Instance details

Defined in Proto3.Suite.Class

NameOfWrapperFor a => Named (Wrapped a) Source # 
Instance details

Defined in Proto3.Suite.Class

Methods

nameOf :: IsString string => Proxy# (Wrapped a) -> string Source #

HasDefault a => HasDefault (Wrapped a) Source # 
Instance details

Defined in Proto3.Suite.Class

FromJSONPB a => FromJSONPB (Wrapped a) Source #

JSONPB format shortcuts Google wrappers types.

Instance details

Defined in Proto3.Suite.JSONPB.Class

ToJSONPB a => ToJSONPB (Wrapped a) Source #

JSONPB format shortcuts Google wrappers types.

Instance details

Defined in Proto3.Suite.JSONPB.Class

type Rep (Wrapped a) Source # 
Instance details

Defined in Google.Protobuf.Wrappers.Polymorphic

type Rep (Wrapped a) = D1 ('MetaData "Wrapped" "Google.Protobuf.Wrappers.Polymorphic" "proto3-suite-0.7.0-inplace" 'True) (C1 ('MetaCons "Wrapped" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))