Module "CategorizedHtmlList.curry"

This library provides functions to categorize a list of entities into a HTML page with an index access (e.g., "A-Z") to these entities.


 Exported names:

Functions:
categorizeByItemKey | list2CategorizedHtml | stringList2ItemList


 Summary of exported functions:

list2CategorizedHtml  :: [(a,[HtmlExp])] -> [(b,String)] -> (a -> b -> Bool) -> [HtmlExp]  deterministic 
          General categorization of a list of entries.
categorizeByItemKey  :: [(String,[HtmlExp])] -> [HtmlExp]  deterministic 
          Categorize a list of entries with respect to the inial keys.
stringList2ItemList  :: [String] -> [(String,[HtmlExp])]  deterministic 
          Convert a string list into an key-item list The strings are used as keys and for the simple text layout.

 Imported modules:

Char
HTML
List
Prelude

 Exported datatypes:


 Exported functions:

list2CategorizedHtml :: [(a,[HtmlExp])] -> [(b,String)] -> (a -> b -> Bool) -> [HtmlExp]  deterministic 

General categorization of a list of entries.
The item will occur in every category for which the boolean function categoryFun yields True.

Example call:  (list2CategorizedHtml itemL categoryL categoryFun)

Parameters:
itemL the list of key-item pairs which are supposed to be categorized with respect to key
categoryL list of key-category pairs to which the items can be sorted in
categoryFun uses the keys of the items and the keys of the categories to distribute the items among the categories.
Returns:
Html containing inner links between the categories

categorizeByItemKey :: [(String,[HtmlExp])] -> [HtmlExp]  deterministic 

Categorize a list of entries with respect to the inial keys.
The categories are named as all initial characters of the keys of the items.

Example call:  (categorizeByItemKey itemL)

Parameters:
itemL the list of key-item pairs which are supposed to be categorized with respect to key
Returns:
Html containing inner links between the categories

stringList2ItemList :: [String] -> [(String,[HtmlExp])]  deterministic 

Convert a string list into an key-item list The strings are used as keys and for the simple text layout.



Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Jun 16 17:05:07 2009