apiary-0.6.0.1: Simple web framework inspired by scotty.

Safe HaskellNone

Control.Monad.Apiary.Filter.Internal

Synopsis

Documentation

function :: Monad m => (SList c -> Request -> Maybe (SList c')) -> ApiaryT c' m b -> ApiaryT c m bSource

raw and most generic filter function.

function' :: Monad m => (Request -> Maybe a) -> ApiaryT (Snoc as a) m b -> ApiaryT as m bSource

filter and append argument.

function_ :: Monad m => (Request -> Bool) -> ApiaryT c m b -> ApiaryT c m bSource

filter only(not modify arguments).