Skip to content

Commit

Permalink
Remove MonadThrow from sandwich-demos/lib/Common.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Feb 29, 2024
1 parent 5c5464b commit fc67669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandwich-demos/lib/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import Test.Sandwich
pauseSeconds :: (MonadIO m) => Double -> m ()
pauseSeconds s = liftIO $ threadDelay $ round (s * 1000000)

pauseRandomAndSucceed :: (MonadIO m, MonadThrow m) => ExampleT context m ()
pauseRandomAndSucceed :: (MonadIO m) => ExampleT context m ()
pauseRandomAndSucceed = pauseRandom >> 2 `shouldBe` 2

pauseRandomAndFail :: (MonadIO m, MonadThrow m) => ExampleT context m ()
pauseRandomAndFail :: (MonadIO m) => ExampleT context m ()
pauseRandomAndFail = pauseRandom >> 2 `shouldBe` 3

pauseRandom :: (MonadIO m) => m ()
Expand Down

0 comments on commit fc67669

Please sign in to comment.