packages feed

hspec-expectations 0.3.0.1 → 0.3.0.2

raw patch · 3 files changed

+12/−16 lines, 3 filesdep −hspec-discoverdep −hspec-expectationsdep ~basedep ~hspecPVP ok

version bump matches the API change (PVP)

Dependencies removed: hspec-discover, hspec-expectations

Dependency ranges changed: base, hspec

API changes (from Hackage documentation)

Files

README.lhs view
@@ -15,9 +15,7 @@ itself.  ~~~ {.haskell .literate}-import Test.Hspec.Monadic-import Test.Hspec.HUnit ()-import Test.Hspec.Expectations+import Test.Hspec import Control.Exception  main :: IO ()@@ -36,7 +34,7 @@   describe "shouldThrow" $ do      it "asserts that an exception is thrown" $ do-      throw DivideByZero `shouldThrow` (== DivideByZero)+      evaluate (1 `div` 0 :: Int) `shouldThrow` (== DivideByZero) ~~~  ## shouldBe@@ -61,7 +59,7 @@ `shouldReturn` asserts that an action returns a given value.  ~~~ {.haskell}-return "bar" `shouldReturn` "bar"+launchMissiles `shouldReturn` Left "permission error" ~~~  ## shouldThrow
hspec-expectations.cabal view
@@ -1,5 +1,5 @@ name:             hspec-expectations-version:          0.3.0.1+version:          0.3.0.2 synopsis:         Catchy combinators for HUnit description:      Catchy combinators for HUnit: <https://github.com/sol/hspec-expectations#readme> license:          MIT@@ -20,7 +20,7 @@   ghc-options:       -Wall   build-depends:-      base < 4.6+      base < 4.7     , HUnit   hs-source-dirs:       src@@ -36,16 +36,15 @@   ghc-options:       -Wall -Werror   hs-source-dirs:-      test+      src+    , test   build-depends:-      base        >= 4.0  && < 4.6-    , hspec-expectations+      base     , HUnit     , silently-    , hspec-    , hspec-discover+    , hspec       >= 1.3 -test-suite readme-attoparsec+test-suite readme   type:       exitcode-stdio-1.0   ghc-options:@@ -54,5 +53,4 @@       README.lhs   build-depends:       base-    , hspec-expectations-    , hspec+    , hspec       >= 1.3
src/Test/Hspec/Expectations.hs view
@@ -34,7 +34,7 @@ , errorCall ) where -import           Prelude hiding (catch)+import           Prelude import           Test.HUnit import           Control.Exception import           Data.Typeable