| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Job.Kind
Description
A payload's variant label, stored on the job row for filtering and grouping.
Documentation
class HasKind payload whereSource #
A payload's per-job variant label. With no instance, the job is unlabelled. An empty
instance on a Generic payload labels it with the constructor name.
Minimal complete definition
Nothing
constructorKind :: (GKind (Rep a), Generic a) => a -> TextSource #
A value's constructor name, for a payload that wraps a sum. Requires Generic.
instance HasKind Envelope where kindOf = Just . constructorKind . envelopePayload kindsFor = constructorKinds @EmailPayload
constructorKinds :: GKind (Rep a) => [Text]Source #
Every constructor name of a type, in declaration order.
class GKind (f :: k -> Type) whereSource #
Constructor names of a generic representation, in declaration order.
Methods
gKindOf :: forall (a :: k). f a -> TextSource #
The constructor name of a value.
Every constructor name.