Safe Haskell | None |
---|
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 {
- 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
Resource | |
|
data ResourceTree typ Source
ResourceLeaf (Resource typ) | |
ResourceParent String CheckOverlap [Piece typ] [ResourceTree typ] |
Functor ResourceTree | |
Lift t => Lift (ResourceTree t) |
Methods | |
| |
Subsite | |
|
type CheckOverlap = BoolSource
data FlatResource a Source
FlatResource | |
|
Helper functions
resourceMulti :: Resource typ -> Maybe typSource
resourceTreePieces :: ResourceTree typ -> [Piece typ]Source
resourceTreeName :: ResourceTree typ -> StringSource
flatten :: [ResourceTree a] -> [FlatResource a]Source