@@ -12,7 +12,6 @@ import Servant.API ( type (:<|>), ReqBody, QueryParam, MatrixParam, MatrixParams
1212 , MatrixFlag, Get, Post, Capture, type (:>) , HTML , JSON, XML )
1313import Servant.QQSpec ( (~>) )
1414import Servant.Utils.Links ( IsElem, IsLink )
15−<<<<<<< HEAD
1615
1716type TestApi =
1817 -- Capture and query/matrix params
@@ -28,7 +27,7 @@ type TestApi =
2827 -- All of the verbs
2928 :<|> "get" :> Get '[JSON] ()
3029 :<|> "put" :> Put '[JSON] ()
31− :<|> "post" :> ReqBody 'True :> Post '[JSON] ()
30+ :<|> "post" :> ReqBody '[JSON] 'True :> Post '[JSON] ()
3231 :<|> "delete" :> Header "ponies" :> Delete
3332 :<|> "raw" :> Raw
3433
@@ -44,7 +43,7 @@ type BadTestLink' = "hello" :> "hi" :> Get '[HTML] Bool
4443type BadTestLink'2 = "greet" :> Get '[HTML] Bool
4544
4645type NotALink = "hello" :> Capture "x" Bool :> Get '[JSON] Bool
47−type NotALink2 = "hello" :> ReqBody 'True :> Get '[JSON] Bool
46+type NotALink2 = "hello" :> ReqBody '[JSON] 'True :> Get '[JSON] Bool
4847
4948apiLink :: (IsElem endpoint TestApi, HasLink endpoint)
5049 => Proxy endpoint -> MkLink endpoint