CurryInfo: currydoc-4.0.0 / CurryDoc.Read.groupComment

definition:
 
groupComment :: String -> [SourceLine] -> [(SourceLine,String)]
groupComment _ [] = []  -- comment not followed by definition -> ignore
groupComment cmt (Comment cmt1 : sls) = groupComment (cmt++"\n"++cmt1) sls
groupComment cmt (FuncDef f    : sls) = (FuncDef f, cmt) : skipFuncDefs f sls
groupComment cmt (DataDef d    : sls) = (DataDef d, cmt) : skipDataDefs d sls
groupComment cmt (ModDef       : sls) = groupComment cmt sls
groupComment cmt (OtherLine    : sls) = groupComment cmt sls
demand:
 argument 2
deterministic:
 deterministic operation
failfree:
 (_, _)
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_,{[]}) |-> {[]} || (_,{:}) |-> {:,[]}}
name:
 groupComment
precedence:
 no precedence defined
result-values:
 {:,[]}
signature:
 String -> [SourceLine] -> [(SourceLine, String)]
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 reducible on all ground data terms