git.iko.soy/typeable/servant
on 98e02ea help sign in
10 lines 274 B history raw
1{-# LANGUAGE PolyKinds #-}
2module Servant.API.Capture (Capture) where
4-- | Capture a value from the request path under a certain type @a@.
5--
6-- Example:
7--
8-- > -- GET /books/:isbn
9-- > type MyApi = "books" :> Capture "isbn" Text :> Get Book
10data Capture sym a