Module CPM.Package.HTML

This module contains operations to generate HTML representations of packages.

Summary of exported operations:

packageToHTML :: [[Package]] -> Package -> IO String  Deterministic 
Generate HTML page string for a given package.
getUploadTime :: Package -> IO (Maybe CalendarTime)  Deterministic 
getTestResults :: String -> IO (Maybe String)  Deterministic 
manualURL :: Package -> Maybe String  Deterministic 
Manual URL of a package (if specified in package).
packageInfoAsHTML :: [[Package]] -> Package -> Maybe String -> [(String,[BaseHtml])]  Deterministic 
Renders information about a package as HTML description list.
hitems :: [BaseHtml] -> [BaseHtml]  Deterministic 
Horizontal placement of HTML expressions separated by blanks.
vitems :: [BaseHtml] -> [BaseHtml]  Deterministic 
Vertical placement of HTML expressions.
showPkgVersion :: Package -> (Int,Int,Int,Maybe String) -> BaseHtml  Deterministic 
showPkgSource :: Package -> [(String,[BaseHtml])]  Deterministic 
showCompilerReq :: CompilerCompatibility -> BaseHtml  Deterministic 
showConstraintBadge :: String -> BaseHtml  Deterministic 
showURL :: String -> BaseHtml  Deterministic 
cpmPackagePage :: String -> [BaseHtml] -> [[BaseHtml]] -> [BaseHtml] -> IO String  Deterministic 
Standard HTML page for generated package descriptions.
smallMutedText :: String -> BaseHtml  Deterministic 
A small muted text (used in the title):
favIcon :: String -> String  Deterministic 
cssIncludes :: String -> [String]  Deterministic 
jsIncludes :: String -> [String]  Deterministic 
packagesHomeBrand :: (String,[BaseHtml])  Deterministic 
leftTopMenu :: Bool -> Int -> [[BaseHtml]]  Deterministic 
The standard left top menu.
rightTopMenu :: [[BaseHtml]]  Deterministic 
The standard right top menu.
curryDocFooter :: CalendarTime -> [BaseHtml]  Deterministic 
borderedTable :: [[[BaseHtml]]] -> BaseHtml  Deterministic 
A bordered table:
borderedHeadedTable :: [[BaseHtml]] -> [[[BaseHtml]]] -> BaseHtml  Deterministic 
A bordered headed table:
headedTable :: [[BaseHtml]] -> [[[BaseHtml]]] -> BaseHtml  Deterministic 
Headed table with a header row and a matrix of items.
strip :: String -> String  Deterministic 

Exported operations:

packageToHTML :: [[Package]] -> Package -> IO String  Deterministic 

Generate HTML page string for a given package.

getUploadTime :: Package -> IO (Maybe CalendarTime)  Deterministic 

getTestResults :: String -> IO (Maybe String)  Deterministic 

manualURL :: Package -> Maybe String  Deterministic 

Manual URL of a package (if specified in package).

packageInfoAsHTML :: [[Package]] -> Package -> Maybe String -> [(String,[BaseHtml])]  Deterministic 

Renders information about a package as HTML description list.

hitems :: [BaseHtml] -> [BaseHtml]  Deterministic 

Horizontal placement of HTML expressions separated by blanks.

vitems :: [BaseHtml] -> [BaseHtml]  Deterministic 

Vertical placement of HTML expressions.

showPkgVersion :: Package -> (Int,Int,Int,Maybe String) -> BaseHtml  Deterministic 

showPkgSource :: Package -> [(String,[BaseHtml])]  Deterministic 

showCompilerReq :: CompilerCompatibility -> BaseHtml  Deterministic 

Further infos:
  • partially defined

showConstraintBadge :: String -> BaseHtml  Deterministic 

showURL :: String -> BaseHtml  Deterministic 

Further infos:
  • partially defined

cpmPackagePage :: String -> [BaseHtml] -> [[BaseHtml]] -> [BaseHtml] -> IO String  Deterministic 

Standard HTML page for generated package descriptions.

smallMutedText :: String -> BaseHtml  Deterministic 

A small muted text (used in the title):

favIcon :: String -> String  Deterministic 

cssIncludes :: String -> [String]  Deterministic 

jsIncludes :: String -> [String]  Deterministic 

packagesHomeBrand :: (String,[BaseHtml])  Deterministic 

leftTopMenu :: Bool -> Int -> [[BaseHtml]]  Deterministic 

The standard left top menu. The first argument is true if we are inside a package documentation. The second argument indicates the index of the active link (negative value = no active link)

rightTopMenu :: [[BaseHtml]]  Deterministic 

The standard right top menu.

borderedTable :: [[[BaseHtml]]] -> BaseHtml  Deterministic 

A bordered table:

borderedHeadedTable :: [[BaseHtml]] -> [[[BaseHtml]]] -> BaseHtml  Deterministic 

A bordered headed table:

headedTable :: [[BaseHtml]] -> [[[BaseHtml]]] -> BaseHtml  Deterministic 

Headed table with a header row and a matrix of items. Each item is a list of HTML expressions.

strip :: String -> String  Deterministic