rowdy-yesod-0.0.1.0: An EDSL for web application routes.

Safe HaskellNone
LanguageHaskell2010

Rowdy.Yesod.Internal

Description

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

Documentation

data Endpoint Source #

An endpoint in the Yesod model.

Constructors

MkResource Verb String

A resource identified by a Verb and a String name.

MkSubsite String String String

A subsite.

data PathPiece Source #

The type of things that can affect a path.

Constructors

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.

data Type where Source #

A value containing a Proxy of some Haskell type.

Constructors

Type :: Typeable t => Proxy t -> Type 

Instances

Eq Type Source # 

Methods

(==) :: Type -> Type -> Bool #

(/=) :: Type -> Type -> Bool #

Show Type Source # 

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

data Verb Source #

The HTTP verbs.

Constructors

Get 
Put 
Post 
Delete 

Instances

Eq Verb Source # 

Methods

(==) :: Verb -> Verb -> Bool #

(/=) :: Verb -> Verb -> Bool #

Show Verb Source # 

Methods

showsPrec :: Int -> Verb -> ShowS #

show :: Verb -> String #

showList :: [Verb] -> ShowS #

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.