Skip to content

Commit 607549b

Browse files
authored
Merge pull request #36 from biocad/ysangkok/patch-1
No upper bound on Cabal dependency, copy of #35
2 parents f0ac450 + a59804d commit 607549b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
matrix:
3434
include:
3535
# Added manually - no 9.4 in haskell-ci yet
36-
- compiler: ghc-9.4.2
36+
- compiler: ghc-9.4.3
3737
compilerKind: ghc
38-
compilerVersion: 9.4.2
38+
compilerVersion: 9.4.3
3939
setup-method: ghcup
4040
allow-failure: true
4141
- compiler: ghc-9.2.2
@@ -243,8 +243,8 @@ jobs:
243243
rm -f cabal.project.local
244244
- name: constraint set servant-0.19
245245
run: |
246-
if [ $((HCNUMVER >= 80800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19' --dependencies-only -j2 all ; fi
247-
if [ $((HCNUMVER >= 80800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19' all ; fi
246+
if [ $((HCNUMVER >= 80800 && HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19' --dependencies-only -j2 all ; fi
247+
if [ $((HCNUMVER >= 80800 && HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19' all ; fi
248248
- name: constraint set servant-0.18.2
249249
run: |
250250
if [ $((HCNUMVER >= 80800 && HCNUMVER < 90000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.2' --dependencies-only -j2 all ; fi

example/example.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tested-with:
1919
|| ==8.10.7
2020
|| ==9.0.2
2121
|| ==9.2.2
22-
|| ==9.4.2
22+
|| ==9.4.3
2323

2424
library
2525
ghc-options: -Wall

servant-openapi3.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tested-with:
3434
|| ==8.10.7
3535
|| ==9.0.2
3636
|| ==9.2.2
37-
|| ==9.4.2
37+
|| ==9.4.3
3838

3939
extra-source-files:
4040
README.md
@@ -56,7 +56,7 @@ source-repository head
5656
custom-setup
5757
setup-depends:
5858
base >=4.9 && <4.18,
59-
Cabal >= 1.24 && <3.7,
59+
Cabal >= 1.24,
6060
cabal-doctest >=1.0.6 && <1.1
6161

6262
library
@@ -85,7 +85,7 @@ library
8585
, lens >=4.17 && <5.3
8686
, servant >=0.17 && <0.20
8787
, singleton-bool >=0.1.4 && <0.2
88-
, openapi3 >=3.0.0 && <3.3
88+
, openapi3 >=3.2.3 && <3.3
8989
, text >=1.2.3.0 && <3
9090
, unordered-containers >=0.2.9.0 && <0.3
9191

src/Servant/OpenApi/Internal.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ instance
229229

230230
combineSwagger :: OpenApi -> OpenApi -> OpenApi
231231
combineSwagger s t = OpenApi
232-
{ _openApiInfo = _openApiInfo s <> _openApiInfo t
232+
{ _openApiOpenapi = _openApiOpenapi s <> _openApiOpenapi t
233+
, _openApiInfo = _openApiInfo s <> _openApiInfo t
233234
, _openApiServers = _openApiServers s <> _openApiServers t
234235
, _openApiPaths = InsOrdHashMap.unionWith combinePathItem (_openApiPaths s) (_openApiPaths t)
235236
, _openApiComponents = _openApiComponents s <> _openApiComponents t

0 commit comments

Comments
 (0)