Skip to content

Commit dca6656

Browse files
authored
Merge pull request #778 from IntersectMBO/jdral/quickcheck-lockstep-0.8.0
Update to `quickcheck-lockstep-0.8`
2 parents 4b7a03d + 79eba84 commit dca6656

File tree

9 files changed

+306
-376
lines changed

9 files changed

+306
-376
lines changed

cabal.project.release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
index-state:
22
-- Bump this if you need newer packages from Hackage
3-
-- current date: fs-api-0.4.0.0 and fs-sim-0.4.0.0
4-
, hackage.haskell.org 2025-07-01T00:00:00Z
3+
-- current date: quickcheck-lockstep-0.8.0
4+
, hackage.haskell.org 2025-07-03T13:54:16Z
55

66
packages:
77
.

lsm-tree.cabal

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,11 @@ test-suite lsm-tree-test
771771
, quickcheck-classes
772772
, quickcheck-dynamic
773773
, quickcheck-instances
774-
, quickcheck-lockstep
774+
, quickcheck-lockstep >=0.8
775775
, random
776776
, safe-wild-cards
777777
, semialign
778778
, split
779-
, stm
780779
, tasty
781780
, tasty-golden
782781
, tasty-hunit
@@ -1090,7 +1089,7 @@ test-suite prototypes-test
10901089
, primitive
10911090
, QuickCheck
10921091
, quickcheck-dynamic
1093-
, quickcheck-lockstep
1092+
, quickcheck-lockstep >=0.8
10941093
, tasty
10951094
, tasty-hunit
10961095
, tasty-quickcheck

test-prototypes/Test/ScheduledMergesQLS.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ deriving stock instance Eq (ModelValue Model a)
383383

384384

385385
runActionIO :: Action (Lockstep Model) a
386-
-> LookUp IO
386+
-> LookUp
387387
-> ReaderT (PrimVar RealWorld TableId) IO a
388388
runActionIO action lookUp = ReaderT $ \tidVar -> do
389389
case action of
@@ -408,7 +408,7 @@ runActionIO action lookUp = ReaderT $ \tidVar -> do
408408
ADump var -> stToIO $ logicalValue (lookUpVar var)
409409
where
410410
lookUpVar :: ModelVar Model a -> a
411-
lookUpVar = realLookupVar (Proxy :: Proxy IO) lookUp
411+
lookUpVar = realLookupVar lookUp
412412

413413
tr :: Tracer (ST RealWorld) Event
414414
tr = nullTracer

test/Test/Database/LSMTree/Internal/Readers.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ instance RunLockstep ReadersState RealMonad where
414414
Pop {} -> OEither . bimap OId (OTuple3 . trimap OId OId OId)
415415
DropWhileKey {} -> OEither . bimap OId (OTuple2 . bimap OId OId)
416416

417-
runIO :: LockstepAction ReadersState a -> LookUp RealMonad -> RealMonad (Realized RealMonad a)
417+
runIO :: LockstepAction ReadersState a -> LookUp -> RealMonad a
418418
runIO act lu = case act of
419419
New offset srcDatas -> ReaderT $ \(hfs, hbio) -> do
420420
RealState numRuns mCtx <- get

0 commit comments

Comments
 (0)