Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Yesod.Routes.TH.Types
Contents
Description
Warning! This module is considered internal and may have breaking changes
Synopsis
- data Resource typ = Resource {
- resourceName :: String
- resourcePieces :: [Piece typ]
- resourceDispatch :: Dispatch typ
- resourceAttrs :: [String]
- resourceCheck :: CheckOverlap
- data ResourceTree typ
- = ResourceLeaf (Resource typ)
- | ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ]
- data Piece typ
- data Dispatch typ
- = Methods {
- methodsMulti :: Maybe typ
- methodsMethods :: [String]
- | Subsite {
- subsiteType :: typ
- subsiteFunc :: String
- = Methods {
- type CheckOverlap = Bool
- data FlatResource a = FlatResource {
- frParentPieces :: [(String, [Piece a])]
- frName :: String
- frPieces :: [Piece a]
- frDispatch :: Dispatch a
- frCheck :: Bool
- resourceMulti :: Resource typ -> Maybe typ
- resourceTreePieces :: ResourceTree typ -> [Piece typ]
- resourceTreeName :: ResourceTree typ -> String
- flatten :: [ResourceTree a] -> [FlatResource a]
Data types
Constructors
Resource | |
Fields
|
data ResourceTree typ Source #
Constructors
ResourceLeaf (Resource typ) | |
ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ] |
Instances
Functor ResourceTree Source # | |
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 # | |
Defined in Yesod.Routes.TH.Types Methods lift :: Quote m => ResourceTree typ -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => ResourceTree typ -> Code m (ResourceTree typ) | |
Show typ => Show (ResourceTree typ) Source # | |
Defined in Yesod.Routes.TH.Types Methods showsPrec :: Int -> ResourceTree typ -> ShowS show :: ResourceTree typ -> String showList :: [ResourceTree typ] -> ShowS |
Constructors
Methods | |
Fields
| |
Subsite | |
Fields
|
type CheckOverlap = Bool Source #
data FlatResource a Source #
Constructors
FlatResource | |
Fields
|
Instances
Show a => Show (FlatResource a) Source # | |
Defined in Yesod.Routes.TH.Types Methods showsPrec :: Int -> FlatResource a -> ShowS show :: FlatResource a -> String showList :: [FlatResource a] -> ShowS |
Helper functions
resourceMulti :: Resource typ -> Maybe typ Source #
resourceTreePieces :: ResourceTree typ -> [Piece typ] Source #
resourceTreeName :: ResourceTree typ -> String Source #
flatten :: [ResourceTree a] -> [FlatResource a] Source #