CurryInfo: currydoc-4.0.0 / CurryDoc.Html.genFixityInfo

definition: Info
 
genFixityInfo :: QName -> [COpDecl] -> [BaseHtml]
genFixityInfo fname ops =
    concatMap (\(COp n fix prec)->
                  if n == fname
                  then [htxt $ "defined as " ++ showFixity fix ++
                               " infix operator with precedence " ++ show prec]
                  else [])
              ops
 where
  showFixity CInfixOp  = "non-associative"
  showFixity CInfixlOp = "left-associative"
  showFixity CInfixrOp = "right-associative"
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Generates a comment about the associativity and precedence
if the name is defined as an infix operator.
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 genFixityInfo
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (String, String) -> [AbstractCurry.Types.COpDecl] -> [HTML.Base.BaseHtml]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term