Skip to content

Commit 3d5faab

Browse files
authored
Merge pull request #78 from phadej/ghc-8.4.1
Allow GHC-8.4.1
2 parents 9035149 + 249530d commit 3d5faab

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ matrix:
4444
- compiler: "ghc-8.2.2"
4545
# env: TEST=--disable-tests BENCH=--disable-benchmarks
4646
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
47+
- compiler: "ghc-8.4.1"
48+
# env: TEST=--disable-tests BENCH=--disable-benchmarks
49+
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
4750

4851
before_install:
4952
- HC=${CC}
@@ -75,7 +78,7 @@ install:
7578
- rm -f cabal.project.freeze
7679
- cabal new-build -w ${HC} ${TEST} ${BENCH} --project-file="cabal.project" --dep -j2 all
7780
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks --project-file="cabal.project" --dep -j2 all
78-
- rm -rf "."/.ghc.environment.* "."/dist
81+
- rm -rf .ghc.environment.* "."/dist
7982
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
8083

8184
# Here starts the actual work to be performed for the package under test;

servant-swagger.cabal

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: servant-swagger
22
version: 1.1.5
3+
x-revision: 1
34
synopsis: Generate Swagger specification for your servant API.
45
description:
56
Swagger™ is a project used to describe and document RESTful APIs.
@@ -30,7 +31,8 @@ tested-with:
3031
GHC==7.8.4,
3132
GHC==7.10.3,
3233
GHC==8.0.2,
33-
GHC==8.2.2
34+
GHC==8.2.2,
35+
GHC==8.4.1
3436

3537
extra-source-files:
3638
README.md
@@ -51,8 +53,8 @@ source-repository head
5153

5254
custom-setup
5355
setup-depends:
54-
base >=4.7 && <4.11,
55-
Cabal >= 1.18 && <2.1,
56+
base >=4.7 && <4.12,
57+
Cabal >= 1.18 && <2.3,
5658
cabal-doctest >=1.0.2 && <1.1
5759

5860
library
@@ -70,8 +72,8 @@ library
7072
Servant.Swagger.Internal.TypeLevel.Every
7173
Servant.Swagger.Internal.TypeLevel.TMap
7274
hs-source-dirs: src
73-
build-depends: aeson >=0.11.2.0 && <1.3
74-
, base >=4.7.0.0 && <4.11
75+
build-depends: aeson >=0.11.2.0 && <1.4
76+
, base >=4.7.0.0 && <4.12
7577
, bytestring >=0.10.4.0 && <0.11
7678
, http-media >=0.6.3 && <0.8
7779
, insert-ordered-containers >=0.1.0.0 && <0.3
@@ -91,7 +93,7 @@ test-suite doctests
9193
build-depends:
9294
base,
9395
directory >= 1.0,
94-
doctest >= 0.11.1 && <0.14,
96+
doctest >= 0.11.1 && <0.16,
9597
servant,
9698
QuickCheck,
9799
filepath

src/Servant/Swagger.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ import Servant.Swagger.Test
158158
-- >>> hspec $ validateEveryToJSON (Proxy :: Proxy UserAPI)
159159
-- <BLANKLINE>
160160
-- [User]
161+
-- ...
161162
-- User
163+
-- ...
162164
-- UserId
163-
-- <BLANKLINE>
165+
-- ...
164166
-- Finished in ... seconds
165167
-- 3 examples, 0 failures
166168
--

src/Servant/Swagger/Internal/Test.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ import Servant.Swagger.Internal.TypeLevel
4747
-- <BLANKLINE>
4848
-- ToJSON matches ToSchema
4949
-- User
50+
-- ...
5051
-- UserId
51-
-- <BLANKLINE>
52+
-- ...
5253
-- Finished in ... seconds
5354
-- 2 examples, 0 failures
5455
--
@@ -107,9 +108,11 @@ validateEveryToJSONWithPatternChecker checker _ = props
107108
-- <BLANKLINE>
108109
-- read . show == id
109110
-- Bool
111+
-- ...
110112
-- Int
113+
-- ...
111114
-- [Char]
112-
-- <BLANKLINE>
115+
-- ...
113116
-- Finished in ... seconds
114117
-- 3 examples, 0 failures
115118
props :: forall p p'' cs xs. TMap (Every (Typeable ': Show ': Arbitrary ': cs)) xs =>

0 commit comments

Comments
 (0)