| 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
Source #class HasKind payload where
A payload's per-job variant label. Defaults to unlabelled.
Minimal complete definition
Nothing
Source #constructorKind :: (GKindOf (Rep a), Generic a) => a -> Text
The constructor name of a value, for a payload that wraps the sum it wants
labelled. Needs Generic on the wrapped type.
instance HasKind Envelope where kindOf = Just . constructorKind . envelopePayload kindsFor = constructorKinds @EmailPayload
Source #constructorKinds :: GKindsOf (Rep a) => [Text]
Every constructor name of a type, in declaration order.
Source #class GKindOf (f :: k -> Type) where
The constructor name of a generic value.
Source #class GKindsOf (f :: k) where
Every constructor name of a generic representation, in declaration order.
Instances
| GKindsOf (V1 :: k -> Type) Source # | |
Defined in Arbiter.Core.Job.Kind | |
| (GKindsOf f, GKindsOf g) => GKindsOf (f :+: g :: k -> Type) Source # | |
Defined in Arbiter.Core.Job.Kind | |
| KnownSymbol n => GKindsOf (C1 ('MetaCons n fx s) f :: k -> Type) Source # | |
Defined in Arbiter.Core.Job.Kind | |
| GKindsOf f => GKindsOf (D1 d f :: k -> Type) Source # | |
Defined in Arbiter.Core.Job.Kind | |