Skip to content
  • Ryan Scott's avatar
    Parenthesize (() :: Constraint) in argument position · 99c556d2
    Ryan Scott authored
    Summary:
    A simple oversight in the pretty-printer lead to a special
    case for `() :: Constraint` not being parenthesized correctly when
    used in an argument position. Easily fixed with a `maybeParen`.
    
    Test Plan: make test TEST=T14796
    
    Reviewers: alanz, goldfire, bgamari, simonpj
    
    Reviewed By: bgamari, simonpj
    
    Subscribers: simonpj, rwbarton, thomie, carter
    
    GHC Trac Issues: #14796
    
    Differential Revision: https://phabricator.haskell.org/D4408
    99c556d2