[commit: ghc] master: Fix terminal corruption bug and clean up SDoc interface. (22845ad)
git at git.haskell.org
git at git.haskell.org
Tue Jan 10 20:28:08 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/22845adcc51b40040b9d526c36d2d36edbb11dd7/ghc
>---------------------------------------------------------------
commit 22845adcc51b40040b9d526c36d2d36edbb11dd7
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Tue Jan 10 14:31:55 2017 -0500
Fix terminal corruption bug and clean up SDoc interface.
- 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
>---------------------------------------------------------------
22845adcc51b40040b9d526c36d2d36edbb11dd7
compiler/llvmGen/LlvmCodeGen/Base.hs | 5 ++--
compiler/main/DynFlags.hs | 15 +++++------
compiler/nativeGen/AsmCodeGen.hs | 7 +++--
compiler/utils/Outputable.hs | 51 +++++++++++++++++++++++++++---------
4 files changed, 51 insertions(+), 27 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 22845adcc51b40040b9d526c36d2d36edbb11dd7
More information about the ghc-commits
mailing list