Skip to content

Commit ae62532

Browse files
Fix CPP for servant <=0.18
1 parent f8095f6 commit ae62532

File tree

1 file changed

+1
-2
lines changed
  • src/Servant/OpenApi/Internal/TypeLevel

1 file changed

+1
-2
lines changed

src/Servant/OpenApi/Internal/TypeLevel/API.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ type family BodyTypes' c api :: [*] where
9494
BodyTypes' c (a :<|> b) = AppendList (BodyTypes' c a) (BodyTypes' c b)
9595
#if MIN_VERSION_servant(0,19,0)
9696
BodyTypes' c (NamedRoutes api) = BodyTypes' c (ToServantApi api)
97-
#endif
9897
-- Handle UVerb by recursively expanding it to BodyTypes' c (Verb ...)
9998
-- Unwrap WithStatus explicitly to avoid trying to expand
10099
-- `Verb .. (WithStatus n a)` later on.
@@ -107,5 +106,5 @@ type family BodyTypes' c api :: [*] where
107106
BodyTypes' c (UVerb verb cs (a ': as)) =
108107
AppendList (BodyTypes' c (Verb verb (StatusOf a) cs a)) (BodyTypes' c (UVerb verb cs as))
109108
BodyTypes' c (UVerb verb cs '[]) = '[]
110-
109+
#endif
111110
BodyTypes' c api = '[]

0 commit comments

Comments
 (0)