git.iko.soy/typeable/servant
on master help sign in
API.Capture: Fix haddocks
74a52dfBen Gamari
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