Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data path :> a
Documentation
data path :> a infixr 9 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
(ToText v, HasLink k sub) => HasLink * ((:>) * k (Capture * sym v) sub) | |
HasLink k sub => HasLink * ((:>) * k (ReqBody k ct a) sub) | |
(KnownSymbol sym, HasLink k sub) => HasLink * ((:>) * k (MatrixFlag sym) sub) | |
(KnownSymbol sym, ToText v, HasLink k sub) => HasLink * ((:>) * k (MatrixParams * sym v) sub) | |
(KnownSymbol sym, ToText v, HasLink k sub) => HasLink * ((:>) * k (MatrixParam * sym v) sub) | |
(KnownSymbol sym, HasLink k sub) => HasLink * ((:>) * k (QueryFlag sym) sub) | |
(KnownSymbol sym, ToText v, HasLink k sub) => HasLink * ((:>) * k (QueryParams * sym v) sub) | |
(KnownSymbol sym, ToText v, HasLink k sub) => HasLink * ((:>) * k (QueryParam * sym v) sub) | |
(KnownSymbol sym, HasLink k sub) => HasLink * ((:>) Symbol k sym sub) | |
Typeable (k -> k -> *) ((:>) k k) | |
type MkLink * ((:>) * k (Capture * sym v) sub) = v -> MkLink k sub | |
type MkLink * ((:>) * k (ReqBody k1 ct a) sub) = MkLink k sub | |
type MkLink * ((:>) * k (MatrixFlag sym) sub) = Bool -> MkLink k sub | |
type MkLink * ((:>) * k (MatrixParams * sym v) sub) = [v] -> MkLink k sub | |
type MkLink * ((:>) * k (MatrixParam * sym v) sub) = v -> MkLink k sub | |
type MkLink * ((:>) * k (QueryFlag sym) sub) = Bool -> MkLink k sub | |
type MkLink * ((:>) * k (QueryParams * sym v) sub) = [v] -> MkLink k sub | |
type MkLink * ((:>) * k (QueryParam * sym v) sub) = v -> MkLink k sub | |
type MkLink * ((:>) Symbol k sym sub) = MkLink k sub |