swagger2-2.1.3: 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 #

Minimal complete definition

gmempty, gmappend

Methods

gmempty :: f p Source #

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

Instances

GMonoid U1 Source # 

Methods

gmempty :: U1 p Source #

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

SwaggerMonoid a => GMonoid (K1 i a) Source # 

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 # 

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 # 

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 #

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 # 
SwaggerMonoid URL Source # 
SwaggerMonoid ExternalDocs Source # 
SwaggerMonoid Response Source # 
SwaggerMonoid Responses Source # 
SwaggerMonoid Schema Source # 
SwaggerMonoid ParamLocation Source # 
SwaggerMonoid ParamOtherSchema Source # 
SwaggerMonoid ParamAnySchema Source # 
SwaggerMonoid Param Source # 
SwaggerMonoid MimeList Source # 
SwaggerMonoid Operation Source # 
SwaggerMonoid PathItem Source # 
SwaggerMonoid Info Source # 
SwaggerMonoid [a] Source # 

Methods

swaggerMempty :: [a] Source #

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

SwaggerMonoid (Maybe a) Source # 
Ord a => SwaggerMonoid (Set a) Source # 
Monoid a => SwaggerMonoid (Referenced a) Source # 
SwaggerMonoid (ParamSchema t) Source # 
SwaggerMonoid (SwaggerType t) Source # 
(Eq k, Hashable k) => SwaggerMonoid (HashMap k v) Source # 
Ord k => SwaggerMonoid (Map k v) Source # 

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 # 
SwaggerMonoid (InsOrdHashMap FilePath PathItem) Source #