Safe Haskell | None |
---|---|
Language | Haskell98 |
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
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 = Bool Source
data FlatResource a Source
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