Safe Haskell | None |
---|---|
Language | Haskell98 |
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 {}
- resourceMulti :: Resource typ -> Maybe typ
- resourceTreePieces :: ResourceTree typ -> [Piece typ]
- resourceTreeName :: ResourceTree typ -> String
- flatten :: [ResourceTree a] -> [FlatResource a]
Data types
Resource | |
|
data ResourceTree typ Source #
ResourceLeaf (Resource typ) | |
ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ] |
Instances
Functor ResourceTree Source # | |
Defined in Yesod.Routes.TH.Types fmap :: (a -> b) -> ResourceTree a -> ResourceTree b # (<$) :: a -> ResourceTree b -> ResourceTree a # | |
Show typ => Show (ResourceTree typ) Source # | |
Defined in Yesod.Routes.TH.Types showsPrec :: Int -> ResourceTree typ -> ShowS # show :: ResourceTree typ -> String # showList :: [ResourceTree typ] -> ShowS # | |
Lift typ => Lift (ResourceTree typ) Source # | |
Defined in Yesod.Routes.TH.Types lift :: ResourceTree typ -> Q Exp # |
Methods | |
| |
Subsite | |
|
type CheckOverlap = Bool Source #
data FlatResource a Source #
Instances
Show a => Show (FlatResource a) Source # | |
Defined in Yesod.Routes.TH.Types 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 #