summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs/Expr.hs
diff options
context:
space:
mode:
authorRyan Scott <rscott@galois.com>2021-06-18 09:32:24 -0400
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2021-06-18 23:42:25 +0200
commit62cebc0a8802e5f2e8af80ef72f59924a6aacbec (patch)
treea31e27bf4fadd6216ee41c380985c5ba4b6a9217 /compiler/GHC/Hs/Expr.hs
parenta0622459f1d9a7068e81b8a707ffc63e153444f8 (diff)
downloadhaskell-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 'compiler/GHC/Hs/Expr.hs')
0 files changed, 0 insertions, 0 deletions