Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- vinfoObjectSchema :: ValueSchema NamedSwaggerDoc v -> ObjectSchema SwaggerDoc [v]
- versionHeader :: CI ByteString
- type VersionHeader = "X-Wire-API-Version"
- data From v
- data Until v
- class VersionedMonad v m where
- guardVersion :: (v -> Bool) -> m ()
Version info
vinfoObjectSchema :: ValueSchema NamedSwaggerDoc v -> ObjectSchema SwaggerDoc [v] Source #
Version utilities
type VersionHeader = "X-Wire-API-Version" Source #
Servant combinators
Instances
RoutesToPaths api => RoutesToPaths (From v :> api :: Type) Source # | |
Defined in Wire.API.VersionInfo | |
(VersionedMonad (Demote v) m, SingI n, Ord (Demote v), SingKind v, HasClientAlgebra m api) => HasClient m (From n :> api) Source # | |
Defined in Wire.API.VersionInfo | |
(SingI n, Ord (Demote v), Enum (Demote v), SingKind v, HasServer api ctx) => HasServer (From n :> api :: Type) ctx Source # | |
Defined in Wire.API.VersionInfo | |
type SpecialiseToVersion (v :: k) (From w :> api) Source # | |
Defined in Wire.API.Routes.SpecialiseToVersion | |
type Client m (From n :> api) Source # | |
Defined in Wire.API.VersionInfo | |
type SpecialiseToVersion v (From w :> api) Source # | |
Defined in Wire.API.Routes.Version | |
type ServerT (From n :> api :: Type) m Source # | |
Instances
RoutesToPaths api => RoutesToPaths (Until v :> api :: Type) Source # | |
Defined in Wire.API.VersionInfo | |
(VersionedMonad (Demote v) m, SingI n, Ord (Demote v), SingKind v, HasClientAlgebra m api) => HasClient m (Until n :> api) Source # | |
Defined in Wire.API.VersionInfo | |
(SingI n, Ord (Demote v), Enum (Demote v), SingKind v, HasServer api ctx) => HasServer (Until n :> api :: Type) ctx Source # | |
Defined in Wire.API.VersionInfo | |
type SpecialiseToVersion (v :: k) (Until w :> api) Source # | |
Defined in Wire.API.Routes.SpecialiseToVersion type SpecialiseToVersion (v :: k) (Until w :> api) = If (v < w) (SpecialiseToVersion v api) EmptyAPI | |
type Client m (Until n :> api) Source # | |
Defined in Wire.API.VersionInfo | |
type SpecialiseToVersion v (Until w :> api) Source # | |
Defined in Wire.API.Routes.Version | |
type ServerT (Until n :> api :: Type) m Source # | |
class VersionedMonad v m where Source #
guardVersion :: (v -> Bool) -> m () Source #