Make the forall-or-nothing rule only apply to invisible foralls (#18660)
This fixes #18660 by changing `isLHsForAllTy` to `isLHsInvisForAllTy`, which is sufficient to make the `forall`-or-nothing rule only apply to invisible `forall`s. I also updated some related documentation and Notes while I was in the neighborhood.
Showing
- compiler/GHC/Hs/Type.hs 7 additions, 4 deletionscompiler/GHC/Hs/Type.hs
- compiler/GHC/Rename/HsType.hs 39 additions, 13 deletionscompiler/GHC/Rename/HsType.hs
- docs/users_guide/exts/explicit_forall.rst 16 additions, 11 deletionsdocs/users_guide/exts/explicit_forall.rst
- testsuite/tests/dependent/should_compile/T18660.hs 7 additions, 0 deletionstestsuite/tests/dependent/should_compile/T18660.hs
- testsuite/tests/dependent/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/dependent/should_compile/all.T
Loading
Please register or sign in to comment