| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Web.Spock.Routing
Documentation
type ParamMap = HashMap CaptureVar Text Source
data RegexWrapper Source
Constructors
| RegexWrapper | |
Fields
| |
Instances
Constructors
| RouteNodeRegex !CaptureVar !RegexWrapper | |
| RouteNodeCapture !CaptureVar | |
| RouteNodeText !Text | |
| RouteNodeRoot |
data RoutingTree a Source
Constructors
| RoutingTree | |
Fields
| |
Instances
| Eq a => Eq (RoutingTree a) | |
| Show a => Show (RoutingTree a) |
buildRegex :: Text -> RegexWrapper Source
addToRoutingTree :: Text -> a -> RoutingTree a -> RoutingTree a Source
parseRouteNode :: Text -> RouteNode Source
matchRoute :: Text -> RoutingTree a -> [(ParamMap, a)] Source
matchRoute' :: [Text] -> RoutingTree a -> [(ParamMap, a)] Source