apiary-2.0.1: Simple and type safe web framework that generate web API documentation.

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Apiary.Filter.Capture

Synopsis

Documentation

path :: Monad actM => Text -> Filter' exts actM m Source

check first path and drill down. since 0.11.0.

fetch :: forall proxy k p exts prms actM m. (k </ prms, KnownSymbol k, Path p, Monad actM) => proxy (k := p) -> Maybe Html -> Filter exts actM m prms ((k := p) : prms) Source

fetch' :: (k </ prms, KnownSymbol k, Path p, Monad actM) => proxy k -> proxy' p -> Maybe Html -> Filter exts actM m prms ((k := p) : prms) Source

get first path and drill down. since 0.11.0.

anyPath :: (Monad m, Monad actM) => Filter' exts actM m Source

restPath :: (k </ prms, KnownSymbol k, Monad m, Monad actM) => proxy k -> Maybe Html -> Filter exts actM m prms ((k := [Text]) : prms) Source