Skip to content

Commit

Permalink
Use HeapWords from cardano-base instead of cardano-prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Aug 8, 2022
1 parent d696f1d commit 1ae63dd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions cabal.project
Expand Up @@ -42,6 +42,7 @@ test-show-details: streaming
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-base
-- update tag and sha256 after merging https://github.com/input-output-hk/cardano-base/pull/280/commits
tag: 631cb6cf1fa01ab346233b610a38b3b4cba6e6ab
--sha256: 0944wg2nqazmhlmsynwgdwxxj6ay0hb9qig9l128isb2cjia0hlp
subdir:
Expand Down
1 change: 1 addition & 0 deletions eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Data.hs
Expand Up @@ -54,6 +54,7 @@ import Cardano.Binary
withSlice,
)
import Cardano.Crypto.Hash.Class (HashAlgorithm)
import Cardano.HeapWords (HeapWords (..), heapWords0, heapWords1)
import Cardano.Ledger.Alonzo.Era
import Cardano.Ledger.Alonzo.Language (Language (..))
import Cardano.Ledger.Alonzo.Scripts (AlonzoScript (..), validScript)
Expand Down
2 changes: 1 addition & 1 deletion eras/shelley/impl/src/Cardano/Ledger/Shelley/TxBody.hs
Expand Up @@ -72,6 +72,7 @@ import Cardano.Binary
encodeListLen,
)
import qualified Cardano.Crypto.Hash.Class as HS
import Cardano.HeapWords (HeapWords (..))
import Cardano.Ledger.Address (Addr (..), RewardAcnt (..))
import Cardano.Ledger.AuxiliaryData (AuxiliaryDataHash)
import Cardano.Ledger.BaseTypes (StrictMaybe (..), Url)
Expand Down Expand Up @@ -109,7 +110,6 @@ import Cardano.Ledger.Shelley.PoolParams
import Cardano.Ledger.Slot (SlotNo (..))
import Cardano.Ledger.TxIn (TxIn)
import Cardano.Ledger.Val (DecodeNonNegative (..))
import Cardano.Prelude (HeapWords (..))
import Control.DeepSeq (NFData (rnf))
import qualified Data.ByteString.Lazy as BSL
import Data.ByteString.Short (ShortByteString, pack)
Expand Down
2 changes: 1 addition & 1 deletion libs/cardano-ledger-core/src/Cardano/Ledger/Coin.hs
Expand Up @@ -22,8 +22,8 @@ module Cardano.Ledger.Coin
where

import Cardano.Binary (FromCBOR (..), ToCBOR (..))
import Cardano.HeapWords (HeapWords)
import Cardano.Ledger.Compactible
import Cardano.Prelude (HeapWords)
import Control.DeepSeq (NFData)
import Data.Aeson (FromJSON, ToJSON)
import Data.Group (Abelian, Group (..))
Expand Down
2 changes: 1 addition & 1 deletion libs/cardano-ledger-core/src/Cardano/Ledger/SafeHash.hs
Expand Up @@ -58,8 +58,8 @@ where

import Cardano.Binary (FromCBOR (..), ToCBOR (..))
import qualified Cardano.Crypto.Hash as Hash
import Cardano.HeapWords (HeapWords (..))
import qualified Cardano.Ledger.Crypto as CC
import Cardano.Prelude (HeapWords (..))
import Control.DeepSeq (NFData)
import Data.ByteString (ByteString)
import Data.ByteString.Short (ShortByteString, fromShort)
Expand Down
2 changes: 2 additions & 0 deletions libs/cardano-ledger-core/src/Cardano/Ledger/TxIn.hs
Expand Up @@ -27,6 +27,8 @@ import Cardano.Binary (FromCBOR (fromCBOR), ToCBOR (..), encodeListLen)
import Cardano.Ledger.BaseTypes (TxIx (..), mkTxIxPartial)
import qualified Cardano.Ledger.Crypto as CC
import Cardano.Ledger.Hashes (EraIndependentTxBody)
import Cardano.HeapWords (HeapWords (..))
import qualified Cardano.HeapWords as HW
import Cardano.Ledger.SafeHash (SafeHash)
import Cardano.Ledger.Serialization (decodeRecordNamed)
import Cardano.Prelude (HeapWords (..))
Expand Down

0 comments on commit 1ae63dd

Please sign in to comment.