on master help sign in
Merge pull request #110 from bgamari/master
2725e20Julian Arni
servant-server/servant-server.cabal+1−1
@@ -40,7 +40,7 @@ library
40 Servant.Utils.StaticFiles
40 Servant.Utils.StaticFiles
41 build-depends:
41 build-depends:
42 base >= 4.7 && < 5
42 base >= 4.7 && < 5
43− , aeson >= 0.7 && < 0.9
43+ , aeson >= 0.7 && < 0.10
44 , attoparsec >= 0.12 && < 0.14
44 , attoparsec >= 0.12 && < 0.14
45 , bytestring >= 0.10 && < 0.11
45 , bytestring >= 0.10 && < 0.11
46 , either >= 4.3 && < 4.5
46 , either >= 4.3 && < 4.5
servant/src/Servant/API/Capture.hs+1
@@ -9,6 +9,7 @@ import GHC.TypeLits (Symbol)
9-- | Capture a value from the request path under a certain type @a@.
9-- | Capture a value from the request path under a certain type @a@.
10--
10--
11-- Example:
11-- Example:
12+--
12-- >>> -- GET /books/:isbn
13-- >>> -- GET /books/:isbn
13-- >>> type MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
14-- >>> type MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
14data Capture (sym :: Symbol) a
15data Capture (sym :: Symbol) a