Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Feature
Synopsis
- data Featured eon era a where
- unFeatured :: Featured eon era a -> a
- asFeaturedInEra :: Eon eon => a -> CardanoEra era -> Maybe (Featured eon era a)
- asFeaturedInShelleyBasedEra :: Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a)
Documentation
data Featured eon era a where Source #
A value only if the eon includes era
Constructors
Featured | |
Fields
|
unFeatured :: Featured eon era a -> a Source #
asFeaturedInEra :: 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 :: Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a) Source #
Attempt to construct a FeatureValue
from a value and a shelley-based-era.