Skip to content

Commit 21f0cd5

Browse files
authored
Merge pull request #65 from phadej/servant-0.11
Support servant-0.11
2 parents ca921d0 + a124fa7 commit 21f0cd5

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.1.3
2+
---
3+
4+
* Notes:
5+
* `servant-0.11` compatible release
6+
17
1.1.2.1
28
---
39

servant-swagger.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: servant-swagger
2-
version: 1.1.2.1
2+
version: 1.1.3
33
synopsis: Generate Swagger specification for your servant API.
44
description: Please see README.md
55
homepage: https://github.com/haskell-servant/servant-swagger
@@ -60,7 +60,7 @@ library
6060
, http-media >=0.6.3 && <0.7
6161
, insert-ordered-containers >=0.1.0.0 && <0.3
6262
, lens >=4.7.0.1 && <4.16
63-
, servant >=0.5 && <0.11
63+
, servant >=0.5 && <0.12
6464
, swagger2 >=2.1 && <2.2
6565
, text >=1.2.0.6 && <1.3
6666
, unordered-containers >=0.2.5.1 && <0.3

src/Servant/Swagger/Internal.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ class HasSwagger api where
7171
instance HasSwagger Raw where
7272
toSwagger _ = mempty & paths . at "/" ?~ mempty
7373

74+
#if MIN_VERSION_servant(0,11,0)
75+
instance HasSwagger EmptyAPI where
76+
toSwagger _ = mempty
77+
#endif
78+
7479
-- | All operations of sub API.
7580
-- This is similar to @'operationsOf'@ but ensures that operations
7681
-- indeed belong to the API at compile time.

0 commit comments

Comments
 (0)