CurryInfo: currydoc-4.0.0 / CurryDoc.Read.getConsComment

definition: Info
 
getConsComment :: [String] -> String -> Maybe ((String,String))
getConsComment [] _ = Nothing
getConsComment (conscmt:conscmts) cname =
  let (consname,rconscmt) = span isIdChar conscmt
   in if consname == cname
      then let (conscall,callcmt) = break (=='-') conscmt
            in Just (if null callcmt then (consname,rconscmt)
                                     else (conscall,callcmt))
      else getConsComment conscmts cname
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
get comment for a constructor or a field name
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]},_) |-> {Nothing} || ({:},_) |-> {Just,Nothing}}
name: Info
 getConsComment
precedence: Info
 no precedence defined
result-values: Info
 {Just,Nothing}
signature: Info
 [String] -> String -> Prelude.Maybe (String, 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