Skip to content
  • Ryan Scott's avatar
    Fix #14238 by always pretty-printing visible tyvars · 718a0181
    Ryan Scott authored
    Summary:
    Before, GHC would never print visible tyvars in the absence
    of `-fprint-explicit-foralls`, which led to `:kind` displaying
    incorrect kinds in GHCi. The fix is simple—simply check beforehand
    if any of the type variable binders are required when deciding when
    to pretty-print them.
    
    Test Plan: make test TEST=T14238
    
    Reviewers: simonpj, goldfire, bgamari
    
    Subscribers: thomie, carter
    
    GHC Trac Issues: #14238
    
    Differential Revision: https://phabricator.haskell.org/D4564
    718a0181