wai-route-0.4.0: Minimalistic, efficient routing for WAI.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Wai.Route.Tree

Synopsis

Routing Tree

data Tree a Source #

Instances

Instances details
Monoid (Tree a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

mempty :: Tree a #

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

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

Semigroup (Tree a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

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

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

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

Show a => Show (Tree a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

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

show :: Tree a -> String #

showList :: [Tree a] -> ShowS #

Eq a => Eq (Tree a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

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

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

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

Instances details
Show a => Show (Payload a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

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

show :: Payload a -> String #

showList :: [Payload a] -> ShowS #

Eq a => Eq (Payload a) Source # 
Instance details

Defined in Network.Wai.Route.Tree

Methods

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

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

value :: Payload a -> a Source #

Captures

data Captures Source #

Instances

Instances details
Show Captures Source # 
Instance details

Defined in Network.Wai.Route.Tree

Eq Captures Source # 
Instance details

Defined in Network.Wai.Route.Tree