CurryInfo: currydoc-4.0.0 / CurryDoc.Html.addFuncAnchors

definition: Info
 
addFuncAnchors :: [String] -> [String] -> String
addFuncAnchors _    []         = ""
addFuncAnchors ancs (sl : sls) = let id1 = getFirstId sl in
  if null id1 ||
     id1 `elem` ["data","type","import","module","infix","infixl","infixr"]
    then htmlQuote (sl ++ "\n") ++ addFuncAnchors ancs sls
    else if id1 `elem` ancs
         then (sl ++ "\n") ++ addFuncAnchors ancs sls
         else "<a name=\""++id1++"\"></a>"
              ++ htmlQuote (sl++"\n")
              ++ addFuncAnchors (id1:ancs) sls
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
add the anchors to the classified lines and translate back:
first argument: list of already added anchors
second argument: list of source lines
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> {[]} || (_,{:}) |-> _}
name: Info
 addFuncAnchors
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 [String] -> [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