Skip to content

Commit 74664d2

Browse files
committed
Use import orphan EpochNo Num instance from Test.Cardano.Slotting.Numeric
This instance was removed from `cardano-base`.
1 parent 3545bdb commit 74664d2

File tree

7 files changed

+9
-4
lines changed

7 files changed

+9
-4
lines changed

ouroboros-consensus-diffusion/ouroboros-consensus-diffusion.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ test-suite consensus-test
242242
, binary
243243
, bytestring
244244
, cardano-crypto-class
245-
, cardano-slotting
245+
, cardano-slotting:{cardano-slotting, testlib}
246246
, containers
247247
, contra-tracer
248248
, directory

ouroboros-consensus-diffusion/test/consensus-test/Test/Consensus/HardFork/Combinator/A.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ import Ouroboros.Consensus.Util.Orphans ()
8686
import Ouroboros.Network.Block (Serialised, unwrapCBORinCBOR,
8787
wrapCBORinCBOR)
8888
import Ouroboros.Network.Magic
89+
import Test.Cardano.Slotting.Numeric ()
8990
import Test.Util.Time (dawnOfTime)
9091

9192
{-------------------------------------------------------------------------------

ouroboros-consensus-diffusion/test/consensus-test/Test/Consensus/HardFork/Combinator/B.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import Ouroboros.Consensus.Util.Orphans ()
7272
import Ouroboros.Network.Block (Serialised, unwrapCBORinCBOR,
7373
wrapCBORinCBOR)
7474
import Ouroboros.Network.Magic
75+
import Test.Cardano.Slotting.Numeric ()
7576
import Test.Util.Time (dawnOfTime)
7677

7778
{-------------------------------------------------------------------------------

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ library unstable-mock-block
438438
, bytestring
439439
, cardano-binary
440440
, cardano-crypto-class
441-
, cardano-slotting
441+
, cardano-slotting:{cardano-slotting, testlib}
442442
, cborg
443443
, containers
444444
, deepseq
@@ -510,7 +510,7 @@ test-suite consensus-test
510510
, base-deriving-via
511511
, cardano-binary
512512
, cardano-crypto-class
513-
, cardano-slotting
513+
, cardano-slotting:{cardano-slotting, testlib}
514514
, cborg
515515
, containers
516516
, contra-tracer
@@ -613,7 +613,7 @@ test-suite storage-test
613613
, binary
614614
, bytestring
615615
, cardano-crypto-class
616-
, cardano-slotting
616+
, cardano-slotting:{cardano-slotting, testlib}
617617
, cborg
618618
, containers
619619
, contra-tracer

ouroboros-consensus/src/unstable-mock-block/Ouroboros/Consensus/Mock/Protocol/Praos.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ import Ouroboros.Consensus.NodeId (CoreNodeId (..))
7777
import Ouroboros.Consensus.Protocol.Abstract
7878
import Ouroboros.Consensus.Protocol.Signed
7979
import Ouroboros.Consensus.Util.Condense
80+
import Test.Cardano.Slotting.Numeric ()
8081

8182
-- The Praos paper can be located at https://ia.cr/2017/573
8283
--

ouroboros-consensus/test/consensus-test/Test/Consensus/HardFork/History.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import qualified Ouroboros.Consensus.HardFork.Combinator.State as State
5555
import Ouroboros.Consensus.HardFork.Combinator.State.Types
5656
import qualified Ouroboros.Consensus.HardFork.History as HF
5757
import Ouroboros.Consensus.Util (nTimes)
58+
import Test.Cardano.Slotting.Numeric ()
5859
import Test.Consensus.HardFork.Infra
5960
import Test.QuickCheck
6061
import Test.Tasty

ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/TestBlock.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ import Ouroboros.Consensus.Util.Condense
103103
import Ouroboros.Consensus.Util.Orphans ()
104104
import qualified Ouroboros.Network.Mock.Chain as Chain
105105
import System.FS.API.Lazy
106+
import Test.Cardano.Slotting.Numeric ()
106107
import Test.QuickCheck
107108
import Test.Util.Orphans.Arbitrary ()
108109
import Test.Util.Orphans.SignableRepresentation ()

0 commit comments

Comments
 (0)