-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADP-3344] Split off Cardano.Write.Eras
#4809
Conversation
b513018
to
ee6010b
Compare
Cardano.Write.Eras
Cardano.Write.Eras
84d286b
to
16d3218
Compare
16d3218
to
b1110a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 thanks!
module Cardano.Write.Eras | ||
( | ||
-- * Eras | ||
BabbageEra | ||
, ConwayEra | ||
|
||
-- ** RecentEra | ||
, RecentEra (..) | ||
, IsRecentEra (..) | ||
, CardanoApiEra | ||
, toRecentEra | ||
, fromRecentEra | ||
, MaybeInRecentEra (..) | ||
, LatestLedgerEra | ||
, RecentEraConstraints | ||
, allRecentEras | ||
|
||
-- ** Existential wrapper | ||
, AnyRecentEra (..) | ||
, toAnyCardanoEra | ||
, fromAnyCardanoEra | ||
|
||
-- ** Helpers for cardano-api compatibility | ||
, cardanoEra | ||
, shelleyBasedEra | ||
, ShelleyLedgerEra | ||
, cardanoEraFromRecentEra | ||
, shelleyBasedEraFromRecentEra | ||
) where | ||
|
||
import Internal.Cardano.Write.Eras | ||
( AnyRecentEra (..) | ||
, BabbageEra | ||
, CardanoApiEra | ||
, ConwayEra | ||
, IsRecentEra (..) | ||
, LatestLedgerEra | ||
, MaybeInRecentEra (..) | ||
, RecentEra (..) | ||
, RecentEraConstraints | ||
, ShelleyLedgerEra | ||
, allRecentEras | ||
, cardanoEra | ||
, cardanoEraFromRecentEra | ||
, fromAnyCardanoEra | ||
, fromRecentEra | ||
, shelleyBasedEra | ||
, shelleyBasedEraFromRecentEra | ||
, toAnyCardanoEra | ||
, toRecentEra | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too fond of duplicating this interface (friction to change, risk of sections getting out of sync etc), but we can go with it for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The idea is that the public interface, that is Cardano.Write.Eras
, is the source of truth that we need to curate, and that Internal.Cardano.Write.Eras
is an internal module that we can arrange as we please, including removal. For the time being, I'd like to invest into curation and avoid upsetting the internal arrangement of balance-tx
too much.
I think the original idea behind the :internal
sublibrary was that the public library can choose not to export certain internals, such as constructors for abstract data types, but that these internals are still available when unit testing the internal library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the time being, I'd like to invest into curation and avoid upsetting the internal arrangement of balance-tx too much.
👍
This pull requests splits off a public module
Cardano.Write.Eras
for working with the notion of "recent era".First, we split off an internal module, then we create a public module that re-exports the internal module.
Comments
Cardano.Write.Eras
yet.Issue Number
ADP-3344