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

Safe HaskellNone
LanguageHaskell98

Yesod.Routes.TH.Types

Contents

Description

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

Synopsis

Data types

data Resource typ Source #

Instances
Functor Resource Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

fmap :: (a -> b) -> Resource a -> Resource b #

(<$) :: a -> Resource b -> Resource a #

Show typ => Show (Resource typ) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

showsPrec :: Int -> Resource typ -> ShowS #

show :: Resource typ -> String #

showList :: [Resource typ] -> ShowS #

Lift t => Lift (Resource t) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Resource t -> Q Exp #

data ResourceTree typ Source #

Instances
Functor ResourceTree Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

fmap :: (a -> b) -> ResourceTree a -> ResourceTree b #

(<$) :: a -> ResourceTree b -> ResourceTree a #

Show typ => Show (ResourceTree typ) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Lift t => Lift (ResourceTree t) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: ResourceTree t -> Q Exp #

data Piece typ Source #

Constructors

Static String 
Dynamic typ 
Instances
Functor Piece Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

fmap :: (a -> b) -> Piece a -> Piece b #

(<$) :: a -> Piece b -> Piece a #

Show typ => Show (Piece typ) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

showsPrec :: Int -> Piece typ -> ShowS #

show :: Piece typ -> String #

showList :: [Piece typ] -> ShowS #

Lift t => Lift (Piece t) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Piece t -> Q Exp #

data Dispatch typ Source #

Constructors

Methods 

Fields

Subsite 

Fields

Instances
Functor Dispatch Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

fmap :: (a -> b) -> Dispatch a -> Dispatch b #

(<$) :: a -> Dispatch b -> Dispatch a #

Show typ => Show (Dispatch typ) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

showsPrec :: Int -> Dispatch typ -> ShowS #

show :: Dispatch typ -> String #

showList :: [Dispatch typ] -> ShowS #

Lift t => Lift (Dispatch t) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Dispatch t -> Q Exp #

data FlatResource a Source #

Constructors

FlatResource 
Instances
Show a => Show (FlatResource a) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Helper functions