Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data 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]
- segments :: ByteString -> [ByteString]
- data Payload a
- value :: Payload a -> a
- path :: Payload a -> ByteString
- captures :: Payload a -> Captures
- data Captures
- captured :: Captures -> [(ByteString, ByteString)]
- captureParams :: Captures -> [ByteString]
- captureValues :: Captures -> [ByteString]
Routing Tree
fromList :: [(ByteString, a)] -> Tree a Source
segments :: ByteString -> [ByteString] Source
Tree leaf payload
path :: Payload a -> ByteString Source
Captures
captured :: Captures -> [(ByteString, ByteString)] Source
captureParams :: Captures -> [ByteString] Source
captureValues :: Captures -> [ByteString] Source