summaryrefslogtreecommitdiff
path: root/includes/Rts.h
diff options
context:
space:
mode:
authorRyan Scott <rscott@galois.com>2021-06-18 09:32:24 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-19 22:59:08 -0400
commit4c87a3d1d14f9e28c8aa0f6062e9c4201f469ad7 (patch)
treed68347c0caee50b27dbc369856f781dda0bbe003 /includes/Rts.h
parent3f60a7e59dc5e067a3c764799478645dbc37700d (diff)
downloadhaskell-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