diff options
| author | Sylvain Henry <sylvain@haskus.fr> | 2021-01-27 19:47:18 +0100 | 
|---|---|---|
| committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-04-10 05:30:37 -0400 | 
| commit | 3f851bbd473f3a6b679a0b1baafdf489f4786c5e (patch) | |
| tree | f2794f78b0bd40fd1d901608a7c77559313fad99 /compiler/cbits | |
| parent | 6b1d0b9cb5b984e7d4ada5626a675fe2d4e49a5d (diff) | |
| download | haskell-3f851bbd473f3a6b679a0b1baafdf489f4786c5e.tar.gz | |
Enhance pretty-printing perf
A few refactorings made after looking at Core/STG
* Use Doc instead of SDoc in pprASCII to avoid passing the SDocContext
  that is never used.
* Inline every SDoc wrappers in GHC.Utils.Outputable to expose Doc
  constructs
* Add text/[] rule for empty strings (i.e., text "")
* Use a single occurrence of pprGNUSectionHeader
* Use bangs on Platform parameters and some others
Metric Decrease:
    ManyAlternatives
    ManyConstructors
    T12707
    T13035
    T13379
    T18698a
    T18698b
    T1969
    T3294
    T4801
    T5321FD
    T783
Diffstat (limited to 'compiler/cbits')
0 files changed, 0 insertions, 0 deletions
