From f0350e32422c18d0ccdbeb5ce5fa3879f168caa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 27 Nov 2024 17:31:57 +0100 Subject: [PATCH] Export the Convert class --- cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs | 1 - cardano-api/internal/Cardano/Api/Eras.hs | 2 ++ cardano-api/src/Cardano/Api.hs | 2 ++ .../Test/Cardano/Api/Transaction/Autobalance.hs | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs b/cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs index f394180906..ead3f55a2b 100644 --- a/cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs +++ b/cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs @@ -145,7 +145,6 @@ import qualified Cardano.Binary as CBOR import qualified Cardano.Crypto.Hash as Crypto import qualified Cardano.Crypto.Hash.Class as CRYPTO import qualified Cardano.Crypto.Seed as Crypto -import Cardano.Api.Eon.Convert import qualified Cardano.Ledger.Alonzo.Scripts as Alonzo import qualified Cardano.Ledger.BaseTypes as Ledger import qualified Cardano.Ledger.Core as Ledger diff --git a/cardano-api/internal/Cardano/Api/Eras.hs b/cardano-api/internal/Cardano/Api/Eras.hs index f436ea1aa3..6d8eb8e205 100644 --- a/cardano-api/internal/Cardano/Api/Eras.hs +++ b/cardano-api/internal/Cardano/Api/Eras.hs @@ -30,6 +30,7 @@ module Cardano.Api.Eras , maybeEon , monoidForEraInEon , monoidForEraInEonA + , Convert (..) , Inject (..) -- * Data family instances @@ -49,5 +50,6 @@ module Cardano.Api.Eras ) where +import Cardano.Api.Eon.Convert import Cardano.Api.Eras.Case import Cardano.Api.Eras.Core diff --git a/cardano-api/src/Cardano/Api.hs b/cardano-api/src/Cardano/Api.hs index 7438af2ede..c359659460 100644 --- a/cardano-api/src/Cardano/Api.hs +++ b/cardano-api/src/Cardano/Api.hs @@ -48,6 +48,7 @@ module Cardano.Api , unFeatured , asFeaturedInEra , asFeaturedInShelleyBasedEra + , Convert (..) , Inject (..) -- * Eons @@ -1045,6 +1046,7 @@ import Cardano.Api.Eon.AllegraEraOnwards import Cardano.Api.Eon.AlonzoEraOnwards import Cardano.Api.Eon.BabbageEraOnwards import Cardano.Api.Eon.ByronToAlonzoEra +import Cardano.Api.Eon.Convert import Cardano.Api.Eon.ConwayEraOnwards import Cardano.Api.Eon.MaryEraOnwards import Cardano.Api.Eon.ShelleyBasedEra diff --git a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Transaction/Autobalance.hs b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Transaction/Autobalance.hs index 4030210669..f4b695accd 100644 --- a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Transaction/Autobalance.hs +++ b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Transaction/Autobalance.hs @@ -15,7 +15,6 @@ module Test.Cardano.Api.Transaction.Autobalance where import Cardano.Api -import Cardano.Api.Eon.Convert import Cardano.Api.Fees import qualified Cardano.Api.Ledger as L import qualified Cardano.Api.Ledger.Lens as L