• Rufflewind's avatar
    Fix terminal corruption bug and clean up SDoc interface. · 22845adc
    Rufflewind authored
    - Fix #13076 by wrapping `printDoc_` so that the terminal color is
      reset even if an exception occurs.
    
    - Add `printSDoc`, `printSDocLn`, and `bufLeftRenderSDoc` to keep `SDoc`
      values abstract (they are wrappers of `printDoc_`, `printDoc`, and
      `bufLeftRender` respectively).
    
    - Remove unused function: `printForAsm`
    
    Test Plan: manual
    
    Reviewers: RyanGlScott, austin, dfeuer, bgamari
    
    Reviewed By: dfeuer, bgamari
    
    Subscribers: dfeuer, mpickering, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2932
    
    GHC Trac Issues: #13076
    22845adc
DynFlags.hs 212 KB