Skip to content

Commit

Permalink
Change <> to mappend for older GHCs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jun 25, 2019
1 parent f28b206 commit 0b8c29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-update/test/Control/DebounceSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ waitForBatonToBeTaken baton = waitUntil 5 $ tryReadMVar baton >>= (`shouldBe` No
-- | Wait up to n seconds for an actual to complete without throwing an HUnitFailure
waitUntil :: Int -> IO a -> IO ()
waitUntil n action = recovering policy [handler] (\_status -> void action)
where policy = constantDelay 1000 <> limitRetries (n * 1000) -- 1ms * n * 1000 tries = n seconds
where policy = constantDelay 1000 `mappend` limitRetries (n * 1000) -- 1ms * n * 1000 tries = n seconds
handler _status = Handler (\(HUnitFailure {}) -> return True)

main :: IO ()
Expand Down

0 comments on commit 0b8c29a

Please sign in to comment.