Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ApiAction = ApiAction {
- itemResource :: ResourceId
- itemLink :: Link
- itemInfo :: ActionInfo
- data ApiResource = TreeItem {
- resName :: String
- resId :: ResourceId
- resParents :: ResourceId
- resLink :: Link
- resAccessors :: [Accessor]
- resPrivate :: Bool
- resItems :: [ApiAction]
- resDescription :: String
- subResources :: [ApiResource]
- allResourceIds :: ApiResource -> [ResourceId]
- allSubResourceIds :: ApiResource -> [ResourceId]
- allSubResources :: ApiResource -> [ApiResource]
- allSubTrees :: ApiResource -> [ApiResource]
- allTrees :: ApiResource -> [ApiResource]
- apiResources :: ApiResource -> [ResourceId]
- apiSubtrees :: Router m s -> ApiResource
- apiTree :: Router m s -> ApiResource
- apiTree' :: ResourceId -> Link -> Router m s -> ApiResource
- cleanName :: String -> [String]
- defaultTree :: ApiResource
- foldTree :: (ApiResource -> [a] -> a) -> ApiResource -> a
- foldTreeChildren :: ([a] -> a) -> (ApiResource -> [a] -> a) -> ApiResource -> a
- hasAccessor :: ApiResource -> Bool
- mkFuncParts :: ApiAction -> [String]
- noPrivate :: ApiResource -> ApiResource
- resIdents :: ApiResource -> [Link]
- sortTree :: ApiResource -> ApiResource
- subResourceIds :: ApiResource -> [ResourceId]
- subResourceNames :: ApiResource -> [String]
Documentation
ApiAction | |
|
data ApiResource Source #
TreeItem | |
|
allResourceIds :: ApiResource -> [ResourceId] Source #
allSubResourceIds :: ApiResource -> [ResourceId] Source #
allSubResources :: ApiResource -> [ApiResource] Source #
allSubTrees :: ApiResource -> [ApiResource] Source #
allTrees :: ApiResource -> [ApiResource] Source #
apiResources :: ApiResource -> [ResourceId] Source #
apiSubtrees :: Router m s -> ApiResource Source #
apiTree :: Router m s -> ApiResource Source #
apiTree' :: ResourceId -> Link -> Router m s -> ApiResource Source #
foldTree :: (ApiResource -> [a] -> a) -> ApiResource -> a Source #
Traversing ApiResources
foldTreeChildren :: ([a] -> a) -> (ApiResource -> [a] -> a) -> ApiResource -> a Source #
hasAccessor :: ApiResource -> Bool Source #
mkFuncParts :: ApiAction -> [String] Source #
Extra functions for generation
noPrivate :: ApiResource -> ApiResource Source #
resIdents :: ApiResource -> [Link] Source #
sortTree :: ApiResource -> ApiResource Source #
subResourceIds :: ApiResource -> [ResourceId] Source #
subResourceNames :: ApiResource -> [String] Source #