wai-route-0.4.0: Minimalistic, efficient routing for WAI.

Safe HaskellSafe
LanguageHaskell2010

Network.Wai.Route.Tree

Contents

Synopsis

Routing Tree

data Tree a Source #

Instances

Eq a => Eq (Tree a) Source # 

Methods

(==) :: Tree a -> Tree a -> Bool #

(/=) :: Tree a -> Tree a -> Bool #

Show a => Show (Tree a) Source # 

Methods

showsPrec :: Int -> Tree a -> ShowS #

show :: Tree a -> String #

showList :: [Tree a] -> ShowS #

Semigroup (Tree a) Source # 

Methods

(<>) :: Tree a -> Tree a -> Tree a #

sconcat :: NonEmpty (Tree a) -> Tree a #

stimes :: Integral b => b -> Tree a -> Tree a #

Monoid (Tree a) Source # 

Methods

mempty :: Tree a #

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

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

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

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

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

Tree leaf payload

data Payload a Source #

Instances

Eq a => Eq (Payload a) Source # 

Methods

(==) :: Payload a -> Payload a -> Bool #

(/=) :: Payload a -> Payload a -> Bool #

Show a => Show (Payload a) Source # 

Methods

showsPrec :: Int -> Payload a -> ShowS #

show :: Payload a -> String #

showList :: [Payload a] -> ShowS #

value :: Payload a -> a Source #

Captures