diff options
author | Ryan Scott <rscott@galois.com> | 2021-06-18 09:32:24 -0400 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2021-06-18 23:42:25 +0200 |
commit | 62cebc0a8802e5f2e8af80ef72f59924a6aacbec (patch) | |
tree | a31e27bf4fadd6216ee41c380985c5ba4b6a9217 /ghc | |
parent | a0622459f1d9a7068e81b8a707ffc63e153444f8 (diff) | |
download | haskell-wip/T20011.tar.gz |
Simplify pprLHsContextwip/T20011
This removes an _ad hoc_ special case for empty `LHsContext`s in
`pprLHsContext`, fixing #20011. To avoid regressions in
pretty-printing data types and classes constructed via TH, we now
apply a heuristic where we convert empty datatype contexts and superclasses
to a `Nothing` (rather than `Just` an empty context). This will, for instance,
avoid pretty-printing every TH-constructed data type as `data () => Blah ...`.
Diffstat (limited to 'ghc')
0 files changed, 0 insertions, 0 deletions