Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from adinapoli-iohk/support-servant-0.11
Browse files Browse the repository at this point in the history
Tentatively support Servant 0.11
  • Loading branch information
jkarni authored Oct 19, 2017
2 parents 57bd2fc + 08ebc80 commit 9f5be2e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions servant-quickcheck/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
- STACK_YAML=stack.yaml
- STACK_YAML=stack-lts-7.yaml
- STACK_YAML=stack-lts-6.yaml
- STACK_YAML=stack-lts-9.yaml


addons:
Expand Down
9 changes: 9 additions & 0 deletions servant-quickcheck/CHANGELOG.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ upcoming:

releases:

- version: "0.0.3.1"
changes:

- description: Support for Servant 0.11
issue: none
pr: 32
authors: adinapoli-iohk
date: 2017-10-18

- version: "0.0.3.0"
changes:

Expand Down
6 changes: 3 additions & 3 deletions servant-quickcheck/servant-quickcheck.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ library
, pretty == 1.1.*
, process >= 1.2 && < 1.5
, QuickCheck > 2.7 && < 2.11
, servant > 0.6 && < 0.10
, servant-client > 0.6 && < 0.10
, servant-server > 0.6 && < 0.10
, servant > 0.6 && < 0.12
, servant-client > 0.6 && < 0.12
, servant-server > 0.6 && < 0.12
, split == 0.2.*
, string-conversions > 0.3 && < 0.5
, temporary == 1.2.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ instance (KnownSymbol path, HasGenRequest b) => HasGenRequest (path :> b) where
(oldf, old) = genRequest (Proxy :: Proxy b)
new = cs $ symbolVal (Proxy :: Proxy path)

#if MIN_VERSION_servant(0,11,0)
instance HasGenRequest EmptyAPI where
genRequest _ = (0, error "EmptyAPIs cannot be queried.")
#endif

instance (Arbitrary c, HasGenRequest b, ToHttpApiData c )
=> HasGenRequest (Capture x c :> b) where
Expand Down
6 changes: 6 additions & 0 deletions servant-quickcheck/stack-lts-9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resolver: lts-9.1
packages:
- '.'
extra-deps: []
flags: {}
extra-package-dbs: []
1 change: 0 additions & 1 deletion servant-quickcheck/test/Servant/QuickCheck/InternalSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import Servant.QuickCheck
import Servant.QuickCheck.Internal (genRequest, runGenRequest,
serverDoesntSatisfy)


spec :: Spec
spec = do
serversEqualSpec
Expand Down

0 comments on commit 9f5be2e

Please sign in to comment.