rowdy-yesod-0.0.1.1: 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.

Instances

Instances details
Eq Endpoint Source # 
Instance details

Defined in Rowdy.Yesod.Internal

Show Endpoint Source # 
Instance details

Defined in Rowdy.Yesod.Internal

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.

Instances

Instances details
Eq PathPiece Source # 
Instance details

Defined in Rowdy.Yesod.Internal

Show PathPiece Source # 
Instance details

Defined in Rowdy.Yesod.Internal

IsString PathPiece Source # 
Instance details

Defined in Rowdy.Yesod.Internal

data Type where Source #

A value containing a Proxy of some Haskell type.

Constructors

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

Instances

Instances details
Eq Type Source # 
Instance details

Defined in Rowdy.Yesod.Internal

Methods

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

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

Show Type Source # 
Instance details

Defined in Rowdy.Yesod.Internal

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

data Verb Source #

The HTTP verbs.

Constructors

Get 
Put 
Post 
Delete 

Instances

Instances details
Eq Verb Source # 
Instance details

Defined in Rowdy.Yesod.Internal

Methods

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

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

Show Verb Source # 
Instance details

Defined in Rowdy.Yesod.Internal

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.