Skip to content

Commit 11f9740

Browse files
committed
Fix hlint: replace lambdas with flip seq
1 parent 9eeb808 commit 11f9740

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Echidna/Exec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ forceVMData vm =
350350
-- the suspended inserts still need their spines demanded via size
351351
subStateWhnf =
352352
let ss = vm.tx.subState
353-
whnfElems = foldl (\u x -> x `seq` u) ()
353+
whnfElems = foldl (flip seq) ()
354354
in whnfElems ss.selfdestructs `seq`
355355
whnfElems ss.touchedAccounts `seq`
356356
whnfElems (map fst ss.refunds) `seq`

lib/Echidna/UI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ monitor snapshotRef = do
388388
-- evaluated, and nothing in the render path demands the list
389389
-- elements
390390
let strippedTests = (\t -> t { vm = Nothing } :: EchidnaTest) <$> tests
391-
!_ = foldl (\u t -> t `seq` u) () strippedTests
391+
!_ = foldl (flip seq) () strippedTests
392392
let updatedState = state { campaigns = c', status = Running, now
393393
, tests = strippedTests
394394
, fetchedContracts = contracts

0 commit comments

Comments
 (0)