commit
2725e20a1a
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue