CurryInfo: currydoc-4.0.0 / CurryDoc.Read.groupLines

definition: Info
 
groupLines :: [SourceLine] -> (String,[(SourceLine,String)])
groupLines sls =
  let (modcmts,progcmts) = break (==ModDef) sls
   in if progcmts == []
      then ("", groupProgLines sls)
      else (concatMap getComment modcmts,
            groupProgLines (filter (/=ModDef) (tail progcmts)))
 where
   getComment src = case src of
      Comment cmt -> cmt ++ "\n"
      _           -> "" -- this case should usually not occur
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
group the classified lines into module comment and list of
(Func/DataDef,comment) pairs:
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> {(,)}}
name: Info
 groupLines
precedence: Info
 no precedence defined
result-values: Info
 {(,)}
signature: Info
 [SourceLine] -> (String, [(SourceLine, String)])
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term