hspec 2.11.13 → 2.11.14
raw patch · 4 files changed
+9/−7 lines, 4 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: hspec-core, hspec-discover
API changes (from Hackage documentation)
- Test.Hspec: type family Arg e
+ Test.Hspec: --
+ Test.Hspec: -- <a>Arg</a> is <tt>()</tt>, no argument is required and the
+ Test.Hspec: -- <a>Example</a> can be run as-is.
+ Test.Hspec: -- <a>Test.Hspec.Core.Hooks</a> such as <a>around</a>, <a>before</a>,
+ Test.Hspec: -- <a>mapSubject</a> and similar.
+ Test.Hspec: -- <tt><a>SpecWith</a> a</tt>, which cannot be executed without turning
+ Test.Hspec: -- The value of <a>Arg</a> is the difference between <a>Spec</a> (aka
+ Test.Hspec: -- To supply an argument to examples, use the functions in
+ Test.Hspec: -- it into <a>Spec</a> first.
+ Test.Hspec: -- | The argument type that is needed to run this <a>Example</a>. If
+ Test.Hspec: type Arg e = ();
+ Test.Hspec: }
- Test.Hspec: class Example e
+ Test.Hspec: class Example e where {
Files
- CHANGES.markdown +3/−0
- hspec.cabal +3/−3
- src/Test/Hspec.hs +2/−3
- version.yaml +1/−1
CHANGES.markdown view
@@ -1,3 +1,6 @@+## Changes in 2.11.14 (2025-09-30)+ - Make sure that `--pretty` completes in *O(n)* time+ ## Changes in 2.11.13 (2025-09-15) - Make diff algorithm line based - Improve pretty-printing of nested records
hspec.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: hspec-version: 2.11.13+version: 2.11.14 license: MIT license-file: LICENSE copyright: (c) 2011-2025 Simon Hengel,@@ -46,8 +46,8 @@ build-depends: QuickCheck >=2.12 , base ==4.*- , hspec-core ==2.11.13- , hspec-discover ==2.11.13+ , hspec-core ==2.11.14+ , hspec-discover ==2.11.14 , hspec-expectations ==0.8.4.* exposed-modules: Test.Hspec
src/Test/Hspec.hs view
@@ -10,8 +10,7 @@ -- * Types Spec , SpecWith-, Arg-, Example+, Example(Arg) -- * Setting expectations , module Test.Hspec.Expectations@@ -40,7 +39,7 @@ , xdescribe , xcontext --- * Focused spec items+-- * Focused spec items #focus# -- | -- During a test run, when a spec contains /focused/ spec items, all other spec -- items are ignored.
version.yaml view
@@ -1,4 +1,4 @@-version: &version 2.11.13+version: &version 2.11.14 synopsis: A Testing Framework for Haskell author: Simon Hengel <sol@typeful.net> maintainer: Simon Hengel <sol@typeful.net>