Skip to content

Commit f7d5491

Browse files
authored
Allow hspec 2.10 (#29)
Fixes commercialhaskell/stackage#6573
1 parent 4165b83 commit f7d5491

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

servant-openapi3.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ test-suite spec
111111
type: exitcode-stdio-1.0
112112
hs-source-dirs: test
113113
main-is: Spec.hs
114-
build-tool-depends: hspec-discover:hspec-discover >=2.6.0 && <2.10
114+
build-tool-depends: hspec-discover:hspec-discover >=2.6.0 && <2.11
115115
build-depends: base
116116
, base-compat
117117
, aeson
118-
, hspec >=2.6.0 && <2.10
118+
, hspec >=2.6.0 && <2.11
119119
, QuickCheck
120120
, lens
121121
, lens-aeson >=1.0.2 && <1.3

src/Servant/OpenApi.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ import Servant.OpenApi.Internal.Orphans ()
512512
-- UserId...
513513
-- ...
514514
-- Finished in ... seconds
515-
-- 3 examples, 0 failures
515+
-- ...3 examples, 0 failures...
516516
--
517517
-- Although servant is great, chances are that your API clients don't use Haskell.
518518
-- In many cases @swagger.json@ serves as a specification, not a Haskell type.

src/Servant/OpenApi/Internal/Test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import Servant.OpenApi.Internal.TypeLevel
5656
-- UserId...
5757
-- ...
5858
-- Finished in ... seconds
59-
-- 2 examples, 0 failures
59+
-- ...2 examples, 0 failures...
6060
--
6161
-- For the test to compile all body types should have the following instances:
6262
--
@@ -122,7 +122,7 @@ validateEveryToJSONWithPatternChecker checker _ = props
122122
-- [Char]...
123123
-- ...
124124
-- Finished in ... seconds
125-
-- 3 examples, 0 failures
125+
-- ...3 examples, 0 failures...
126126
props :: forall p p'' cs xs. TMap (Every (Typeable ': Show ': Arbitrary ': cs)) xs =>
127127
p cs -- ^ A list of constraints.
128128
-> (forall x. EveryTF cs x => x -> Property) -- ^ Property predicate.

0 commit comments

Comments
 (0)