packages feed

hspec-expectations-lifted 0.8.2 → 0.9.0

raw patch · 2 files changed

+3/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Test.Hspec.Expectations.Lifted: shouldReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => IO a -> a -> m ()
+ Test.Hspec.Expectations.Lifted: shouldReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => m a -> a -> m ()

Files

hspec-expectations-lifted.cabal view
@@ -1,5 +1,5 @@ name:             hspec-expectations-lifted-version:          0.8.2+version:          0.9.0 synopsis:         A version of hspec-expectations generalized to MonadIO description:      A version of hspec-expectations generalized to MonadIO license:          MIT
src/Test/Hspec/Expectations/Lifted.hs view
@@ -72,8 +72,8 @@ -- | -- @action \`shouldReturn\` expected@ sets the expectation that @action@ -- returns @expected@.-shouldReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => IO a -> a -> m ()-shouldReturn = liftIO2 E.shouldReturn+shouldReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => m a -> a -> m ()+shouldReturn action expected = action >>= liftIO . (`E.shouldBe` expected)  -- | -- @actual \`shouldNotBe\` notExpected@ sets the expectation that @actual@ is not