Safe Haskell | None |
---|---|
Language | Haskell2010 |
- combineRoute :: Text -> Text -> Text
- type TextAction m r = TAction m r []
- newtype TPath a = TPath {}
- newtype TAction m r p = TAction (m r)
- newtype TActionAppl m r = TActionAppl (m r)
- data TextRouter m a = TextRouter
- data RegexWrapper = RegexWrapper {
- rw_regex :: !Regex
- rw_original :: !Text
- data RouteNode
- data RouteData a = RouteData {}
- data RoutingTree a = RoutingTree {
- rm_graph :: Graph
- rm_nodeManager :: Vector (RouteData a)
- rm_rootNode :: Node
- emptyRoutingTree :: RoutingTree a
- spawnNode :: Node -> RouteData a -> RoutingTree a -> (Node, RoutingTree a)
- addActionToNode :: Node -> a -> RoutingTree a -> RoutingTree a
- addToRoutingTree :: Text -> a -> RoutingTree a -> RoutingTree a
- matchRoute :: Text -> RoutingTree a -> [(ParamMap, a)]
- matchRoute' :: [Text] -> RoutingTree a -> [(ParamMap, a)]
- buildRegex :: Text -> RegexWrapper
- parseRouteNode :: Text -> RouteNode
- emptyParamMap :: ParamMap
- matchNode :: Text -> RouteNode -> (Bool, Maybe (CaptureVar, Text))
Documentation
combineRoute :: Text -> Text -> Text Source
Combine two routes, ensuring that the slashes don't get messed up
type TextAction m r = TAction m r [] Source
newtype TActionAppl m r Source
TActionAppl (m r) |
data TextRouter m a Source
AbstractRouter (TextRouter m a) | |
data Registry (TextRouter m a) = TextRouterRegistry (RoutingTree (m a), [[Text] -> m a]) | |
data RoutePath (TextRouter m a) = TextRouterPath Text | |
type RouteAction (TextRouter m a) = TAction m a | |
type RouteAppliedAction (TextRouter m a) = m a |
data RegexWrapper Source
RegexWrapper | |
|
data RoutingTree a Source
RoutingTree | |
|
Eq a => Eq (RoutingTree a) | |
Show a => Show (RoutingTree a) | |
NFData a => NFData (RoutingTree a) |
spawnNode :: Node -> RouteData a -> RoutingTree a -> (Node, RoutingTree a) Source
addActionToNode :: Node -> a -> RoutingTree a -> RoutingTree a Source
addToRoutingTree :: Text -> a -> RoutingTree a -> RoutingTree a Source
matchRoute :: Text -> RoutingTree a -> [(ParamMap, a)] Source
matchRoute' :: [Text] -> RoutingTree a -> [(ParamMap, a)] Source
buildRegex :: Text -> RegexWrapper Source
parseRouteNode :: Text -> RouteNode Source