yesod-core-1.6.21.0: Creation of type-safe, RESTful web applications.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Routes.TH.Types

Description

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

Synopsis

Data types

data Resource typ Source #

Instances

Instances details
Functor Resource Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

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

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

Lift typ => Lift (Resource typ :: Type) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Resource typ -> Q Exp #

liftTyped :: Resource typ -> Q (TExp (Resource typ)) #

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 #

data ResourceTree typ Source #

Instances

Instances details
Functor ResourceTree Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

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

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

Lift typ => Lift (ResourceTree typ :: Type) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: ResourceTree typ -> Q Exp #

liftTyped :: ResourceTree typ -> Q (TExp (ResourceTree typ)) #

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

Defined in Yesod.Routes.TH.Types

data Piece typ Source #

Constructors

Static String 
Dynamic typ 

Instances

Instances details
Functor Piece Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

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

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

Lift typ => Lift (Piece typ :: Type) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Piece typ -> Q Exp #

liftTyped :: Piece typ -> Q (TExp (Piece typ)) #

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 #

data Dispatch typ Source #

Constructors

Methods 

Fields

Subsite 

Fields

Instances

Instances details
Functor Dispatch Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

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

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

Lift typ => Lift (Dispatch typ :: Type) Source # 
Instance details

Defined in Yesod.Routes.TH.Types

Methods

lift :: Dispatch typ -> Q Exp #

liftTyped :: Dispatch typ -> Q (TExp (Dispatch typ)) #

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 #

data FlatResource a Source #

Constructors

FlatResource 

Instances

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

Defined in Yesod.Routes.TH.Types

Helper functions