definition: |
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: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Generates a comment about the associativity and precedence if the name is defined as an infix operator. |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_) |-> _} |
name: |
genFixityInfo |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
(String, String) -> [AbstractCurry.Types.COpDecl] -> [HTML.Base.BaseHtml] |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |