@@ -35,7 +35,6 @@ module Cardano.Ledger.Coin (
3535)
3636where
3737
38- import Cardano.HeapWords (HeapWords )
3938import Cardano.Ledger.BaseTypes (
4039 HasZero (.. ),
4140 Inject (.. ),
@@ -83,15 +82,15 @@ newtype Coin = Coin {unCoin :: Integer}
8382 )
8483 deriving (Show ) via Quiet Coin
8584 deriving (Semigroup , Monoid , Group , Abelian ) via Sum Integer
86- deriving newtype (PartialOrd , ToCBOR , EncCBOR , HeapWords )
85+ deriving newtype (PartialOrd , ToCBOR , EncCBOR )
8786
8887instance FromCBOR Coin where
8988 fromCBOR = Coin . toInteger <$> Plain. decodeWord64
9089
9190instance DecCBOR Coin
9291
9392newtype DeltaCoin = DeltaCoin Integer
94- deriving (Eq , Ord , Generic , Enum , NoThunks , HeapWords )
93+ deriving (Eq , Ord , Generic , Enum , NoThunks )
9594 deriving (Show ) via Quiet DeltaCoin
9695 deriving (Semigroup , Monoid , Group , Abelian ) via Sum Integer
9796 deriving newtype (PartialOrd , NFData , ToCBOR , DecCBOR , EncCBOR , ToJSON , FromJSON )
@@ -124,7 +123,7 @@ rationalToCoinViaCeiling = Coin . ceiling
124123
125124instance Compactible Coin where
126125 newtype CompactForm Coin = CompactCoin { unCompactCoin :: Word64 }
127- deriving (Eq , Show , NoThunks , NFData , HeapWords , Prim , Ord , ToCBOR , ToJSON , FromJSON )
126+ deriving (Eq , Show , NoThunks , NFData , Prim , Ord , ToCBOR , ToJSON , FromJSON )
128127 deriving (Semigroup , Monoid , Group , Abelian ) via Sum Word64
129128
130129 toCompact (Coin c) = CompactCoin <$> integerToWord64 c
@@ -145,7 +144,7 @@ instance MemPack (CompactForm Coin) where
145144
146145instance Compactible DeltaCoin where
147146 newtype CompactForm DeltaCoin = CompactDeltaCoin Word64
148- deriving (Eq , Show , NoThunks , NFData , HeapWords , ToJSON , Prim )
147+ deriving (Eq , Show , NoThunks , NFData , ToJSON , Prim )
149148
150149 toCompact (DeltaCoin dc) = CompactDeltaCoin <$> integerToWord64 dc
151150 fromCompact (CompactDeltaCoin cdc) = DeltaCoin (unCoin (word64ToCoin cdc))
0 commit comments