>>>>> "Lennart" == Lennart Augustsson <[EMAIL PROTECTED]> writes:

    >> I always thought that the Int argument to showsPrec is the precision.
    >> So what is it good for? The library report does not explain it.

    > It's used to indicate the precedence when you print with operators to avoid
    > parenthesis.  You can e.g. make something print as

    >     a * b + c * d

    > rather than

    >     (a * b) + (c * d)

    > using the precedence.

Splendid! Lennart, old chap, I think the guy is actually asking _how_.
What do you do with this funny argument?  

(I have never known.  Sorry to be dense.  I guess you put in 7 or
something if some operator has precedence 7.  I know, I could read
the code...)

-- Peter


Reply via email to