Skip to content

Commit

Permalink
Export unsafe constructors from Internal modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie authored and lehins committed Oct 1, 2024
1 parent f49975b commit 28abc8e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
module Cardano.Ledger.Allegra.TxBody.Internal (
AllegraEraTxBody (..),
AllegraTxBody (
..,
AllegraTxBody,
atbAuxDataHash,
atbCerts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module Cardano.Ledger.Alonzo.TxBody.Internal (
Addr28Extra,
DataHash32,
AlonzoTxBody (
..,
AlonzoTxBody,
atbInputs,
atbCollateral,
Expand All @@ -53,7 +54,7 @@ module Cardano.Ledger.Alonzo.TxBody.Internal (
atbAuxDataHash,
atbTxNetworkId
),
AlonzoTxBodyRaw,
AlonzoTxBodyRaw (..),
AlonzoTxBodyUpgradeError (..),
AlonzoEraTxBody (..),
ShelleyEraTxBody (..),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
-- The contents of this module may change __in any way whatsoever__
-- and __without any warning__ between minor versions of this package.
module Cardano.Ledger.Alonzo.TxSeq.Internal (
AlonzoTxSeq (AlonzoTxSeq, txSeqTxns),
AlonzoTxSeq (.., AlonzoTxSeq),
TxSeq,
hashTxSeq,
hashAlonzoTxSeq,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module Cardano.Ledger.Babbage.TxBody.Internal (
allSizedOutputsBabbageTxBodyF,
babbageMinUTxOValue,
BabbageTxBody (
..,
BabbageTxBody,
btbInputs,
btbCollateral,
Expand All @@ -57,7 +58,7 @@ module Cardano.Ledger.Babbage.TxBody.Internal (
btbAuxDataHash,
btbTxNetworkId
),
BabbageTxBodyRaw,
BabbageTxBodyRaw (..),
BabbageTxBodyUpgradeError (..),
babbageAllInputsTxBodyF,
babbageSpendableInputsTxBodyF,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
module Cardano.Ledger.Conway.TxBody.Internal (
ConwayEraTxBody (..),
ConwayTxBody (
..,
ConwayTxBody,
ctbSpendInputs,
ctbCollateralInputs,
Expand All @@ -54,7 +55,7 @@ module Cardano.Ledger.Conway.TxBody.Internal (
ctbCurrentTreasuryValue,
ctbTreasuryDonation
),
ConwayTxBodyRaw,
ConwayTxBodyRaw (..),
conwayTotalDepositsTxBody,
conwayProposalsDeposits,
) where
Expand Down
3 changes: 2 additions & 1 deletion eras/mary/impl/src/Cardano/Ledger/Mary/TxBody/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
module Cardano.Ledger.Mary.TxBody.Internal (
MaryEraTxBody (..),
MaryTxBody (
..,
MaryTxBody,
mtbAuxDataHash,
mtbCerts,
Expand All @@ -40,7 +41,7 @@ module Cardano.Ledger.Mary.TxBody.Internal (
mtbWithdrawals,
mtbMint
),
MaryTxBodyRaw,
MaryTxBodyRaw (..),
)
where

Expand Down
3 changes: 2 additions & 1 deletion eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@
module Cardano.Ledger.Shelley.Tx.Internal (
-- * Transaction
ShelleyTx (
..,
ShelleyTx,
body,
wits,
auxiliaryData
),
ShelleyTxRaw,
ShelleyTxRaw (..),
bodyShelleyTxL,
witsShelleyTxL,
auxDataShelleyTxL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{-# LANGUAGE TypeFamilyDependencies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

{-# OPTIONS_HADDOCK not-home #-}

-- | Provides MemoBytes internals
Expand All @@ -29,7 +28,7 @@
-- The contents of this module may change __in any way whatsoever__
-- and __without any warning__ between minor versions of this package.
module Cardano.Ledger.MemoBytes.Internal (
MemoBytes (Memo),
MemoBytes (.., Memo),
MemoHashIndex,
Mem,
mkMemoBytes,
Expand Down

0 comments on commit 28abc8e

Please sign in to comment.