|
definition: |
genHtmlField :: DocOptions -> [String] -> String -> [(String,String)]
-> CFieldDecl -> [BaseHtml]
genHtmlField docopts fldcmts cname fldCons (CField (fmod,fname) _ ty)
| withAnchor fname = [anchored (fname ++ "_FIELD") html]
| otherwise = html
where
withAnchor f = maybe False (== cname) (lookup f fldCons)
html = [ code [opnameDoc [htxt fname]
, BaseText (" :: " ++ showType docopts fmod True ty)]
] ++ maybe []
(\ (_,cmt) -> htxt " : " : removeTopPar
(docComment2HTML docopts (removeDash cmt)))
(getConsComment fldcmts fname)
|
|
demand: |
arguments 4 5 |
|
deterministic: |
deterministic operation |
|
documentation: |
generate HTML documentation for record fields |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_,_,{CField}) |-> _}
|
|
name: |
genHtmlField |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
CurryDoc.Options.DocOptions -> [String] -> String -> [(String, String)] -> AbstractCurry.Types.CFieldDecl -> [HTML.Base.BaseHtml] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |