Print for-alls more often (Trac #9018)
We now display the foralls of a type if any of the type variables is polykinded. This put kind polymorphism "in your face" a bit more often, but eliminates a lot of head scratching. The user manual reflects the new behaviour. (cherry picked from commit 2f3ea952) Conflicts: testsuite/tests/ghci/scripts/ghci059.stdout testsuite/tests/polykinds/T7438.stderr
Showing
- compiler/main/PprTyThing.hs 4 additions, 7 deletionscompiler/main/PprTyThing.hs
- compiler/typecheck/TcRnTypes.lhs 5 additions, 2 deletionscompiler/typecheck/TcRnTypes.lhs
- compiler/types/TypeRep.lhs 27 additions, 9 deletionscompiler/types/TypeRep.lhs
- docs/users_guide/using.xml 23 additions, 6 deletionsdocs/users_guide/using.xml
- testsuite/tests/ghci/scripts/T7873.stdout 2 additions, 1 deletiontestsuite/tests/ghci/scripts/T7873.stdout
- testsuite/tests/indexed-types/should_fail/T7786.stderr 1 addition, 1 deletiontestsuite/tests/indexed-types/should_fail/T7786.stderr
- testsuite/tests/polykinds/T7230.stderr 2 additions, 2 deletionstestsuite/tests/polykinds/T7230.stderr
- testsuite/tests/polykinds/T8566.stderr 2 additions, 1 deletiontestsuite/tests/polykinds/T8566.stderr
- testsuite/tests/roles/should_compile/Roles1.stderr 3 additions, 3 deletionstestsuite/tests/roles/should_compile/Roles1.stderr
- testsuite/tests/th/TH_Roles2.stderr 1 addition, 1 deletiontestsuite/tests/th/TH_Roles2.stderr
Loading
Please register or sign in to comment