Skip to content
  • Ryan Scott's avatar
    Parenthesize nullary constraint tuples using sigPrec (#17403) · fa0d4809
    Ryan Scott authored and Marge Bot's avatar Marge Bot committed
    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.
    fa0d4809