Skip to content
Snippets Groups Projects
Commit fa0d4809 authored by Ryan Scott's avatar Ryan Scott Committed by Marge Bot
Browse files

Parenthesize nullary constraint tuples using sigPrec (#17403)

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.
parent 7d80f8b5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment