wai-route-0.3.1.1: Minimalistic, efficient routing for WAI

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Route.Tree

Contents

Synopsis

Routing Tree

data Tree a #

Instances

Monoid (Tree a) # 

Methods

mempty :: Tree a #

mappend :: Tree a -> Tree a -> Tree a #

mconcat :: [Tree a] -> Tree a #

fromList :: [(ByteString, a)] -> Tree a #

lookup :: Tree a -> [ByteString] -> Maybe (Payload a) #

foldTree :: (Payload a -> b -> b) -> b -> Tree a -> b #

mapTree :: (Payload a -> Payload b) -> Tree a -> Tree b #

toList :: Tree a -> [Payload a] #

Tree leaf payload

data Payload a #

value :: Payload a -> a #

Captures

data Captures #