Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Featured (eon :: Type -> Type) era a where
- mkFeatured :: forall (eon :: Type -> Type) era a. (IsCardanoEra era, Eon eon) => a -> Maybe (Featured eon era a)
- unFeatured :: forall (eon :: Type -> Type) era a. Featured eon era a -> a
- asFeaturedInEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> CardanoEra era -> Maybe (Featured eon era a)
- asFeaturedInShelleyBasedEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a)
Documentation
data Featured (eon :: Type -> Type) era a where Source #
A value only if the eon includes era
:: forall (eon :: Type -> Type) era a. (IsCardanoEra era, Eon eon) | |
=> a | a value featured in eon |
-> Maybe (Featured eon era a) |
|
Create a Featured with automatic witness conjuring
asFeaturedInEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> CardanoEra era -> Maybe (Featured eon era a) Source #
Attempt to construct a FeatureValue
from a value and era.
If the eon is not supported in the era, then NoFeatureValue
is returned.
asFeaturedInShelleyBasedEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a) Source #
Attempt to construct a FeatureValue
from a value and a shelley-based-era.