Skip to content

Parenthesize nullary constraint tuples using sigPrec (#17403)

Ryan Scott requested to merge wip/T17403 into master

We were using appPrec, not sigPrec, as the precedence when determining whether or not to parenthesize () :: Constraint, which lead to the parentheses being omitted in function contexts like (() :: Constraint) => String. Easily fixed.

Fixes #17403 (closed).

Merge request reports