swagger2-2.3.1: Swagger 2.0 data model

Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Internal.Utils

Documentation

gunfoldEnum :: String -> [a] -> (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c a Source #

parseOneOf :: ToJSON a => [a] -> Value -> Parser a Source #

genericMappend :: (Generic a, GMonoid (Rep a)) => a -> a -> a Source #

class GMonoid f where Source #

Methods

gmempty :: f p Source #

gmappend :: f p -> f p -> f p Source #

Instances
GMonoid (U1 :: Type -> Type) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

gmempty :: U1 p Source #

gmappend :: U1 p -> U1 p -> U1 p Source #

SwaggerMonoid a => GMonoid (K1 i a :: Type -> Type) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

gmempty :: K1 i a p Source #

gmappend :: K1 i a p -> K1 i a p -> K1 i a p Source #

(GMonoid f, GMonoid g) => GMonoid (f :*: g) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

gmempty :: (f :*: g) p Source #

gmappend :: (f :*: g) p -> (f :*: g) p -> (f :*: g) p Source #

GMonoid f => GMonoid (M1 i t f) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

gmempty :: M1 i t f p Source #

gmappend :: M1 i t f p -> M1 i t f p -> M1 i t f p Source #

class SwaggerMonoid m where Source #

Minimal complete definition

Nothing

Methods

swaggerMempty :: m Source #

swaggerMappend :: m -> m -> m Source #

swaggerMempty :: Monoid m => m Source #

swaggerMappend :: Monoid m => m -> m -> m Source #

Instances
SwaggerMonoid Text Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

SwaggerMonoid URL Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid ExternalDocs Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Response Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Responses Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Schema Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid ParamLocation Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid ParamOtherSchema Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid ParamAnySchema Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Param Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid MimeList Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Operation Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid PathItem Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid Info Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid [a] Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

swaggerMempty :: [a] Source #

swaggerMappend :: [a] -> [a] -> [a] Source #

SwaggerMonoid (Maybe a) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Ord a => SwaggerMonoid (Set a) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Monoid a => SwaggerMonoid (Referenced a) Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid (ParamSchema t) Source # 
Instance details

Defined in Data.Swagger.Internal

SwaggerMonoid (SwaggerType t) Source # 
Instance details

Defined in Data.Swagger.Internal

(Eq k, Hashable k) => SwaggerMonoid (HashMap k v) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Ord k => SwaggerMonoid (Map k v) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

Methods

swaggerMempty :: Map k v Source #

swaggerMappend :: Map k v -> Map k v -> Map k v Source #

(Eq k, Hashable k) => SwaggerMonoid (InsOrdHashMap k v) Source # 
Instance details

Defined in Data.Swagger.Internal.Utils

SwaggerMonoid (InsOrdHashMap FilePath PathItem) Source # 
Instance details

Defined in Data.Swagger.Internal