diff --git a/servant-server/servant-server.cabal b/servant-server/servant-server.cabal index c0a07c3b..0bfba00a 100644 --- a/servant-server/servant-server.cabal +++ b/servant-server/servant-server.cabal @@ -40,7 +40,7 @@ library Servant.Utils.StaticFiles build-depends: base >= 4.7 && < 5 - , aeson >= 0.7 && < 0.9 + , aeson >= 0.7 && < 0.10 , attoparsec >= 0.12 && < 0.14 , bytestring >= 0.10 && < 0.11 , either >= 4.3 && < 4.5 diff --git a/servant/src/Servant/API/Capture.hs b/servant/src/Servant/API/Capture.hs index a40e0233..9a2e1b61 100644 --- a/servant/src/Servant/API/Capture.hs +++ b/servant/src/Servant/API/Capture.hs @@ -9,6 +9,7 @@ import GHC.TypeLits (Symbol) -- | Capture a value from the request path under a certain type @a@. -- -- Example: +-- -- >>> -- GET /books/:isbn -- >>> type MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book data Capture (sym :: Symbol) a