| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Yesod.Routes.TH.Types
Contents
Description
Warning! This module is considered internal and may have breaking changes
- 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
Constructors
| Resource | |
Fields
| |
data ResourceTree typ Source
Constructors
| ResourceLeaf (Resource typ) | |
| ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ] |
Instances
| Functor ResourceTree Source | |
| Lift t => Lift (ResourceTree t) Source |
Constructors
| Methods | |
Fields
| |
| Subsite | |
Fields
| |
type CheckOverlap = Bool Source
data FlatResource a Source
Constructors
| FlatResource | |
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