Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Version
- type family V0Sym0 :: Version where ...
- type family V1Sym0 :: Version where ...
- type family V2Sym0 :: Version where ...
- intToVersion :: Int -> Maybe Version
- versionInt :: Version -> Int
- versionText :: Version -> Text
- supportedVersions :: Set Version
- data VersionInfo = VersionInfo {
- vinfoSupported :: [Int]
- versionInfo :: VersionInfo
- data VersionUpperBound
- data VersionRange = VersionRange {}
- allVersions :: VersionRange
- latestCommonVersion :: Foldable f => VersionRange -> f Int -> Maybe Version
- rangeFromVersion :: Version -> VersionRange
- rangeUntilVersion :: Version -> VersionRange
Version, VersionInfo
Instances
versionInt :: Version -> Int Source #
versionText :: Version -> Text Source #
data VersionInfo Source #
VersionInfo | |
|
Instances
FromJSON VersionInfo Source # | |
Defined in Wire.API.Federation.Version parseJSON :: Value -> Parser VersionInfo Source # parseJSONList :: Value -> Parser [VersionInfo] Source # | |
ToJSON VersionInfo Source # | |
Defined in Wire.API.Federation.Version toJSON :: VersionInfo -> Value Source # toEncoding :: VersionInfo -> Encoding Source # toJSONList :: [VersionInfo] -> Value Source # toEncodingList :: [VersionInfo] -> Encoding Source # | |
ToSchema VersionInfo Source # | |
Defined in Wire.API.Federation.Version | |
ToSchema VersionInfo Source # | |
Defined in Wire.API.Federation.Version |
VersionRange
data VersionUpperBound Source #
The upper bound of a version range.
The order of constructors here makes the Unbounded
value maximum in the
generated lexicographic ordering.
Instances
Show VersionUpperBound Source # | |
Defined in Wire.API.Federation.Version showsPrec :: Int -> VersionUpperBound -> ShowS # show :: VersionUpperBound -> String # showList :: [VersionUpperBound] -> ShowS # | |
Eq VersionUpperBound Source # | |
Defined in Wire.API.Federation.Version (==) :: VersionUpperBound -> VersionUpperBound -> Bool # (/=) :: VersionUpperBound -> VersionUpperBound -> Bool # | |
Ord VersionUpperBound Source # | |
Defined in Wire.API.Federation.Version compare :: VersionUpperBound -> VersionUpperBound -> Ordering # (<) :: VersionUpperBound -> VersionUpperBound -> Bool # (<=) :: VersionUpperBound -> VersionUpperBound -> Bool # (>) :: VersionUpperBound -> VersionUpperBound -> Bool # (>=) :: VersionUpperBound -> VersionUpperBound -> Bool # max :: VersionUpperBound -> VersionUpperBound -> VersionUpperBound # min :: VersionUpperBound -> VersionUpperBound -> VersionUpperBound # |
data VersionRange Source #
Instances
latestCommonVersion :: Foldable f => VersionRange -> f Int -> Maybe Version Source #
For a version range of a local backend and for a set of versions that a
remote backend supports, compute the newest version supported by both. The
remote versions are given as integers as the range of versions supported by
the remote backend can include a version unknown to the local backend. If
there is no version in common, the return value is Nothing
.