Skip to content

Commit 71b0260

Browse files
committed
switch QuickCheck imports from hiding to implicit
1 parent 865ae2c commit 71b0260

File tree

3 files changed

+18
-4
lines changed
  • ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/Consensus/Cardano
  • ouroboros-consensus/test

3 files changed

+18
-4
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/Consensus/Cardano/Generators.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import Test.Consensus.Byron.Generators ()
5959
import Test.Consensus.Protocol.Serialisation.Generators ()
6060
import Test.Consensus.Shelley.Generators
6161
import Test.Consensus.Shelley.MockCrypto (CanMock)
62-
import Test.QuickCheck hiding (Some (..))
62+
import Test.QuickCheck (Arbitrary (..), Gen, choose, elements, frequency, oneof, vectorOf)
6363
import Test.Util.Orphans.Arbitrary ()
6464
import Test.Util.Serialisation.Roundtrip
6565
( Coherent (..)

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,23 @@ import Ouroboros.Consensus.HardFork.History.Util
5656
import Ouroboros.Consensus.Ledger.Tables.Combinators (K2 (..))
5757
import Ouroboros.Consensus.Util (Some (..), repeatedly, splits)
5858
import Test.Consensus.HardFork.Infra
59-
import Test.QuickCheck hiding (Some (..))
59+
import Test.QuickCheck
60+
( Arbitrary (..)
61+
, Gen
62+
, Property
63+
, choose
64+
, conjoin
65+
, counterexample
66+
, elements
67+
, oneof
68+
, property
69+
, shrinkList
70+
, sized
71+
, tabulate
72+
, (===)
73+
)
6074
import Test.Tasty
61-
import Test.Tasty.QuickCheck hiding (Some (..))
75+
import Test.Tasty.QuickCheck (testProperty)
6276
import Test.Util.QuickCheck
6377

6478
tests :: TestTree

ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/LedgerDB/StateMachine.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ import qualified Test.QuickCheck as QC
8989
import qualified Test.QuickCheck.Monadic as QC
9090
import Test.QuickCheck.StateModel
9191
import Test.Tasty
92-
import Test.Tasty.QuickCheck hiding (Some (..))
92+
import Test.Tasty.QuickCheck (frequency, tabulate, testProperty)
9393
import Test.Util.TestBlock hiding
9494
( TestBlock
9595
, TestBlockCodecConfig

0 commit comments

Comments
 (0)