Skip to content

Commit

Permalink
Merge pull request #265 from input-output-hk/newhoggy/organise-eon-re…
Browse files Browse the repository at this point in the history
…-exports

Organise eon re-exports. Export `MaryEraOnwards`
  • Loading branch information
newhoggy authored Sep 23, 2023
2 parents fc48ece + 754c4ad commit db67e88
Showing 1 changed file with 47 additions and 27 deletions.
74 changes: 47 additions & 27 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ module Cardano.Api (
asFeaturedInEra,
asFeaturedInShelleyBasedEra,

-- * Features
-- * Eons

-- ** From Byron

ByronEraOnly(..),
AnyByronEraOnly(..),
byronEraOnlyConstraints,
Expand All @@ -66,65 +69,81 @@ module Cardano.Api (
byronToAlonzoEraConstraints,
byronToAlonzoEraToCardanoEra,

ShelleyToBabbageEra(..),
AnyShelleyToBabbageEra(..),
shelleyToBabbageEraConstraints,
shelleyToBabbageEraToCardanoEra,
shelleyToBabbageEraToShelleyBasedEra,
-- ** From Shelley

ShelleyToAllegraEra(..),
AnyShelleyToAllegraEra(..),
shelleyToAllegraEraConstraints,
shelleyToAllegraEraToCardanoEra,
shelleyToAllegraEraToShelleyBasedEra,

ShelleyToMaryEra(..),
AnyShelleyToMaryEra(..),
shelleyToMaryEraConstraints,
shelleyToMaryEraToCardanoEra,
shelleyToMaryEraToShelleyBasedEra,

ShelleyToAlonzoEra(..),
AnyShelleyToAlonzoEra(..),
shelleyToAlonzoEraConstraints,
shelleyToAlonzoEraToCardanoEra,
shelleyToAlonzoEraToShelleyBasedEra,

ShelleyToMaryEra(..),
AnyShelleyToMaryEra(..),
shelleyToMaryEraConstraints,
shelleyToMaryEraToCardanoEra,
shelleyToMaryEraToShelleyBasedEra,
ShelleyToBabbageEra(..),
AnyShelleyToBabbageEra(..),
shelleyToBabbageEraConstraints,
shelleyToBabbageEraToCardanoEra,
shelleyToBabbageEraToShelleyBasedEra,

AlonzoEraOnwards(..),
AnyAlonzoEraOnwards(..),
alonzoEraOnwardsConstraints,
alonzoEraOnwardsToCardanoEra,
alonzoEraOnwardsToShelleyBasedEra,
ShelleyBasedEra(..),
IsShelleyBasedEra(..),
AnyShelleyBasedEra(..),
InAnyShelleyBasedEra(..),
CardanoEraStyle(..),
cardanoEraStyle,
shelleyBasedToCardanoEra,
shelleyBasedEraConstraints,
withShelleyBasedEraConstraintsForLedger,

-- ** From Allegra

-- ** From Mary
MaryEraOnwards(..),
AnyMaryEraOnwards(..),
maryEraOnwardsConstraints,
maryEraOnwardsToCardanoEra,
maryEraOnwardsToShelleyBasedEra,

-- ** From Alonzo

AlonzoEraOnly(..),
AnyAlonzoEraOnly(..),
alonzoEraOnlyConstraints,
alonzoEraOnlyToCardanoEra,
alonzoEraOnlyToShelleyBasedEra,

AlonzoEraOnwards(..),
AnyAlonzoEraOnwards(..),
alonzoEraOnwardsConstraints,
alonzoEraOnwardsToCardanoEra,
alonzoEraOnwardsToShelleyBasedEra,

-- ** From Babbage

BabbageEraOnwards(..),
AnyBabbageEraOnwards(..),
babbageEraOnwardsConstraints,
babbageEraOnwardsToCardanoEra,
babbageEraOnwardsToShelleyBasedEra,

-- ** From Conway

ConwayEraOnwards(..),
AnyConwayEraOnwards(..),
conwayEraOnwardsConstraints,
conwayEraOnwardsToCardanoEra,
conwayEraOnwardsToShelleyBasedEra,

-- ** Shelley-based eras
ShelleyBasedEra(..),
IsShelleyBasedEra(..),
AnyShelleyBasedEra(..),
InAnyShelleyBasedEra(..),
CardanoEraStyle(..),
cardanoEraStyle,
shelleyBasedToCardanoEra,
shelleyBasedEraConstraints,
withShelleyBasedEraConstraintsForLedger,

-- * Era case handling

-- ** Case on CardanoEra
Expand Down Expand Up @@ -1027,6 +1046,7 @@ import Cardano.Api.Eon.ByronToAllegraEra
import Cardano.Api.Eon.ByronToAlonzoEra
import Cardano.Api.Eon.ByronToMaryEra
import Cardano.Api.Eon.ConwayEraOnwards
import Cardano.Api.Eon.MaryEraOnwards
import Cardano.Api.Eon.ShelleyBasedEra
import Cardano.Api.Eon.ShelleyToAllegraEra
import Cardano.Api.Eon.ShelleyToAlonzoEra
Expand Down

0 comments on commit db67e88

Please sign in to comment.