Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- class IsNotificationTag k where
- type NotificationComponent k = (c :: Component) | c -> k
- class HasNotificationEndpoint t where
- type Payload t = (p :: Type) | p -> t
- type NotificationPath t :: Symbol
- type NotificationVersionTag t :: Maybe Version
- type NotificationMods t :: [Type]
- type HasFedPath t = KnownSymbol (NotificationPath t)
- type HasVersionRange t = MkVersionRange (NotificationMods t)
- fedPath :: forall t. HasFedPath t => String
- versionRange :: forall t. HasVersionRange t => VersionRange
Documentation
class IsNotificationTag k Source #
type NotificationComponent k = (c :: Component) | c -> k Source #
Instances
class HasNotificationEndpoint t Source #
type Payload t = (p :: Type) | p -> t Source #
The type of the payload for this endpoint
type NotificationPath t :: Symbol Source #
The central path component of a notification endpoint, e.g., "on-conversation-updated".
type NotificationVersionTag t :: Maybe Version Source #
An optional version tag to distinguish different versions of the same endpoint.
type NotificationVersionTag t = 'Nothing
type NotificationMods t :: [Type] Source #
type NotificationMods t = '[]
Instances
type HasFedPath t = KnownSymbol (NotificationPath t) Source #
type HasVersionRange t = MkVersionRange (NotificationMods t) Source #
fedPath :: forall t. HasFedPath t => String Source #
versionRange :: forall t. HasVersionRange t => VersionRange Source #
The federation API version range this endpoint is supported in.