HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Delegation scheduling

12 declarations
datadata SDELEG
#

Delegation scheduling rules

Instances10Data, STS, Embed, BaseM, Environment, Event, …
  • Data SDELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • STS SDELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • Embed SDELEG MSDELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • Embed SDELEG SDELEGSDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type BaseM SDELEG = IdentityDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Environment SDELEG = DSEnvDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Event SDELEG = VoidDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type PredicateFailure SDELEG = SdelegPredicateFailureDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Signal SDELEG = DCertDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type State SDELEG = DSStateDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
datadata SDELEGS
#

Delegation scheduling sequencing

Instances10Data, STS, Embed, BaseM, Environment, Event, …
datadata DSState
#
Instances7Eq, Show, Generic, NoThunks, HasScheduledDelegations, HasKeyEpochDelegations, …
datadata DCert
#

A delegation certificate.

Constructors

Instances10Eq, Data, Ord, Show, Generic, Hashable, …

Delegation activation

5 declarations
datadata ADELEG
#

Delegation rules

Instances9Data, STS, Embed, BaseM, Environment, Event, …
datadata ADELEGS
#

Delegation rules sequencing

Instances10Data, STS, Embed, BaseM, Environment, Event, …
datadata DSEnv
#

Delegation scheduling environment

Constructors

Instances9Eq, Show, Generic, NoThunks, HasEpoch, HasSlot, …
datadata DState
#

Delegation state

Constructors

Instances7Eq, Show, Generic, NoThunks, HasDelegationMap, HasLastDelegation, …

Delegation interface

9 declarations
datadata DELEG
#

Delegation interface

Instances12Data, STS, HasTrace, Embed, BaseM, Environment, …
  • Data DELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • STS DELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • HasTrace DELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • Embed ADELEGS DELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • Embed SDELEGS DELEGDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type BaseM DELEG = IdentityDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Environment DELEG = DIEnvDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Event DELEG = VoidDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type PredicateFailure DELEG = DelegPredicateFailureDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type Signal DELEG = [DCert]Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type State DELEG = DIStateDefined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
  • type BaseEnv DELEG = ()Defined in byron-spec-ledger-1.1.0.1 · Byron.Spec.Ledger.Delegation
typetype DIEnv = DSEnv
#

Interface environment is the same as scheduling environment.

datadata DIState
#
Instances9Eq, Show, Generic, NoThunks, HasScheduledDelegations, HasKeyEpochDelegations, …

Compute after which slot the delegation certificate will become live, using the chain stability parameter.

datadata EpochDiff
#
Instances6Eq, Data, Show, Generic, NoThunks, Rep

State lens fields

3 declarations

State lens type classes

3 declarations

Generators

4 declarations

Generate a random delegation certificate, which has a high probability of failing since we do not consider the current delegation state. So for instance, we could generate a delegation certificate for a genesis key that already delegated in this epoch.

Functions on delegation state

1 declaration

Support Functions for delegation properties

12 declarations

Predicate failures

6 declarations

None of these PredicateFailures are actually "throwable". The disjuction of the rules' preconditions is True, which means that one of them will pass. The PredicateFailure just act as switches to direct control flow to the successful one.

Instances6Eq, Data, Show, Generic, NoThunks, Rep
Instances6Eq, Data, Show, Generic, NoThunks, Rep

These PredicateFailures are all "throwable". The disjunction of the rules' preconditions is not True - the PredicateFailures represent False cases.

Instances6Eq, Data, Show, Generic, NoThunks, Rep
Instances6Eq, Data, Show, Generic, NoThunks, Rep
Instances6Eq, Data, Show, Generic, NoThunks, Rep
Instances6Eq, Data, Show, Generic, NoThunks, Rep