swagger2-2.0.2: 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

hashMapMapKeys :: (Eq k', Hashable k') => (k -> k') -> HashMap k v -> HashMap k' v Source

hashMapTraverseKeys :: (Eq k', Hashable k', Applicative f) => (k -> f k') -> HashMap k v -> f (HashMap k' v) 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