cardano-api:internal
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Api.Eon.Convert

Synopsis

Documentation

class Convert (f :: a -> Type) (g :: a -> Type) where Source #

The Convert class is aimed at exposing a single interface that lets us convert between eons. However this is generalizable to any injective relationship between types.

Methods

convert :: forall (era :: a). f era -> g era Source #

Instances

Instances details
Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.AllegraEraOnwards

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Eon.BabbageEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.BabbageEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.BabbageEraOnwards

Convert BabbageEraOnwards Era Source # 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: BabbageEraOnwards era -> Era era Source #

Convert ByronToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ByronToAlonzoEra

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Eon.ConwayEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ConwayEraOnwards

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ConwayEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.MaryEraOnwards

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyBasedEra

Convert ShelleyEraOnly ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyEraOnly

Convert ShelleyEraOnly CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToAllegraEra

Convert ShelleyToAllegraEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToAlonzoEra

Convert ShelleyToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToMaryEra

Convert ShelleyToMaryEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Eon.ShelleyToMaryEra

Convert Era BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> BabbageEraOnwards era Source #

Convert Era ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> ShelleyBasedEra era Source #

Convert Era CardanoEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> CardanoEra era Source #