diff options
author | Ryan Scott <rscott@galois.com> | 2021-06-18 09:32:24 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-06-19 22:59:08 -0400 |
commit | 4c87a3d1d14f9e28c8aa0f6062e9c4201f469ad7 (patch) | |
tree | d68347c0caee50b27dbc369856f781dda0bbe003 /includes/Rts.h | |
parent | 3f60a7e59dc5e067a3c764799478645dbc37700d (diff) | |
download | haskell-4c87a3d1d14f9e28c8aa0f6062e9c4201f469ad7.tar.gz |
Simplify pprLHsContext
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 'includes/Rts.h')
0 files changed, 0 insertions, 0 deletions