Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data path :> a
Documentation
data path :> a infixr 4 Source #
The contained API (second argument) can be found under ("/" ++ path)
(path being the first argument).
Example:
>>>
-- GET /hello/world
>>>
-- returning a JSON encoded World value
>>>
type MyApi = "hello" :> "world" :> Get '[JSON] World