Safe Haskell | None |
---|
- combineRoute :: Text -> Text -> Text
- type TextAction m r = TAction m r `[]`
- newtype TPath a = TPath {
- unTPath :: Text
- 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
- = RouteNodeRegex !CaptureVar !RegexWrapper
- | RouteNodeCapture !CaptureVar
- | RouteNodeText !Text
- | RouteNodeRoot
- data RouteData a = RouteData {}
- data RoutingTree a = RoutingTree {
- rt_node :: !(RouteData a)
- rt_children :: !(Vector (RoutingTree a))
- buildRegex :: Text -> RegexWrapper
- emptyRoutingTree :: RoutingTree a
- mergeData :: Maybe a -> Maybe a -> Maybe a
- addToRoutingTree :: Text -> a -> RoutingTree a -> RoutingTree a
- parseRouteNode :: Text -> RouteNode
- emptyParamMap :: ParamMap
- matchRoute :: Text -> RoutingTree a -> [(ParamMap, a)]
- matchRoute' :: [Text] -> RoutingTree a -> [(ParamMap, a)]
- matchNode :: Text -> RouteNode -> (Bool, Maybe (CaptureVar, Text))
Documentation
combineRoute :: Text -> Text -> TextSource
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 RegexWrapper Source
RegexWrapper | |
|
data RoutingTree a Source
RoutingTree | |
|
Eq a => Eq (RoutingTree a) | |
Show a => Show (RoutingTree a) |
buildRegex :: Text -> RegexWrapperSource
addToRoutingTree :: Text -> a -> RoutingTree a -> RoutingTree aSource
parseRouteNode :: Text -> RouteNodeSource
matchRoute :: Text -> RoutingTree a -> [(ParamMap, a)]Source
matchRoute' :: [Text] -> RoutingTree a -> [(ParamMap, a)]Source