Classes defined in each era should go into Core
module
#2932
Labels
💳 technical-debt
Issues related to technical debt we introduced
Core
module
#2932
It was discussed that classes are spread around through out the repo and it would be best if each era defined type classes in the
Cardano.Ledger.[Era].Core
module. Unless of course the type class is used as an internal implementation in some module.For example newly defined type classes in #2901, eg
AlonzoEraTxBody
is defined inCardano.Ledger.Alonzo.TxBody
module, but it needs to move intoCardano.Ledger.Alonzo.Core
, while instances should still live inCardano.Ledger.Alonzo.TxBody
.For convenience I also suggest we re-export the whole of
Cardno.Ledger.Core
module andCardano.Ledger.[Era].Core
from a previous era from it as well. Eg.The text was updated successfully, but these errors were encountered: