yesod-core-1.4.2: Creation of type-safe, RESTful web applications.

Safe HaskellNone

Yesod.Routes.TH.Types

Contents

Description

Warning! This module is considered internal and may have breaking changes

Synopsis

Data types

data Resource typ Source

Constructors

Resource 

Instances

Functor Resource 
Show typ => Show (Resource typ) 
Lift t => Lift (Resource t) 

data ResourceTree typ Source

Constructors

ResourceLeaf (Resource typ) 
ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ] 

Instances

Functor ResourceTree 
Lift t => Lift (ResourceTree t) 

data Piece typ Source

Constructors

Static String 
Dynamic typ 

Instances

Functor Piece 
Show typ => Show (Piece typ) 
Lift t => Lift (Piece t) 

data Dispatch typ Source

Constructors

Methods 

Fields

methodsMulti :: Maybe typ

type of the multi piece at the end

methodsMethods :: [String]

supported request methods

Subsite 

Fields

subsiteType :: typ
 
subsiteFunc :: String
 

Instances

Functor Dispatch 
Show typ => Show (Dispatch typ) 
Lift t => Lift (Dispatch t) 

type CheckOverlap = BoolSource

data FlatResource a Source

Constructors

FlatResource 

Fields

frParentPieces :: [(String, [Piece a])]
 
frName :: String
 
frPieces :: [Piece a]
 
frDispatch :: Dispatch a
 
frCheck :: Bool
 

Helper functions

resourceMulti :: Resource typ -> Maybe typSource