Skip to content
  • Simon Peyton Jones's avatar
    Tidy up the printing of single-predicate contexts · 0ceb84e9
    Simon Peyton Jones authored
    This covers things like
       Eq a => blah   and   (?x::Int) => blah
    where there is just one predicate. Previously we used an ad-hoc
    test to decide whether to parenthesise it, but acutally there is
    a much simpler solution: just use the existing precedence mechamism.
    
    This applies both to Type and HsType.
    0ceb84e9