definition: |
genHtmlCons :: DocOptions -> [(String,String)] -> String -> [CTVarIName] -> [(String,String)] -> CConsDecl -> [BaseHtml] genHtmlCons docopts consfldcmts tcons tvars _ (CCons (cmod,cname) _ argtypes) = anchored (cname ++ "_CONS") [code [opnameDoc [htxt cname], BaseText (" :: " ++ concatMap (\t -> " "++showType docopts cmod True t++" -> ") argtypes ++ tcons ++ concatMap (\(i,_) -> [' ',chr (97+i)]) tvars)]] : maybe [] (\ (_,cmt) -> htxt " : " : removeTopPar (docComment2HTML docopts (removeDash cmt))) (getConsComment conscmts cname) where conscmts = getCommentType "cons" consfldcmts genHtmlCons docopts consfldcmts tcons tvars fldCons (CRecord (cmod,cname) _ fields) = anchored (cname ++ "_CONS") [code [opnameDoc [htxt cname], BaseText (" :: " ++ concatMap (\t -> " " ++ showType docopts cmod True t ++ " -> ") argtypes ++ tcons ++ concatMap (\(i,_) -> [' ',chr (97+i)]) tvars)]] : (maybe [] (\ (_,cmt) -> htxt " : " : removeTopPar (docComment2HTML docopts (removeDash cmt))) (getConsComment conscmts cname)) ++ par [explainCat "Fields:"] : ulistOrEmpty (map (genHtmlField docopts fldcmts cname fldCons) (filter isExportedField fields)) where argtypes = map (\(CField _ _ t) -> t) fields conscmts = getCommentType "cons" consfldcmts fldcmts = getCommentType "field" consfldcmts |
demand: |
argument 6 |
deterministic: |
deterministic operation |
documentation: |
generate HTML documentation for a constructor if it is exported: |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,_,_,_,{CCons}) |-> {:} || (_,_,_,_,_,{CRecord}) |-> {:}} |
name: |
genHtmlCons |
precedence: |
no precedence defined |
result-values: |
{:} |
signature: |
CurryDoc.Options.DocOptions -> [(String, String)] -> String -> [(Prelude.Int, String)] -> [(String, String)] -> AbstractCurry.Types.CConsDecl -> [HTML.Base.BaseHtml] |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |