Better pretty-printing of forall types
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Oct 2018 14:58:13 +0000 (15:58 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 4 Oct 2018 14:37:58 +0000 (15:37 +0100)
commit37ef7031b95c97e7c8bc1d14bc95554a3bac2873
tree62d7205455558129b826ce9d252b07406b2114ec
parent9ebfa03d9e9cbf79f698b5d4bd39e799e4e9a02c
Better pretty-printing of forall types

Currently forall-types with a lot of type variables,
or type variables with big kinds, are pretty-printed too
horizontally, and dribble off to the right in an illegible
way.

This patch treats the type variables as a group, and uses
'fsep' to lay them out decently.
compiler/iface/IfaceType.hs
testsuite/tests/ghci/scripts/T12550.stdout