Safe Haskell | None |
---|---|
Language | Haskell2010 |
An internal module. Depend on this at your own risk -- breaking changes to this module's interface will not be represented as a major version bump.
Synopsis
- data Endpoint
- data PathPiece
- data Type where
- data Verb
- renderVerb :: Verb -> String
- routeTreeToResourceTree :: [RouteTree String PathPiece Endpoint] -> [ResourceTree String]
Documentation
The type of things that can affect a path.
Literal String | Static string literals. |
Capture Type | Dynamic captures. |
Attr String | Route attributes. Not technically part of the path, but applies to everything below it in the tree. |
A value containing a Proxy
of some Haskell type.
The HTTP verbs.
renderVerb :: Verb -> String Source #
Render a verb as an uppercase string.
routeTreeToResourceTree :: [RouteTree String PathPiece Endpoint] -> [ResourceTree String] Source #
Convert the Rowdy RouteTree
structure into one appropriate for the Yesod
routing functions.