Warn about implicit kind variables with -Wcompat
authorVladislav Zavialov <vlad.z.4096@gmail.com>
Sun, 17 Jun 2018 03:44:39 +0000 (23:44 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 17 Jun 2018 03:44:57 +0000 (23:44 -0400)
commit8df24474d0194d28b8273c1539af05793156e23f
treeeeeaf190edb831e45fb23af1960213b530637794
parent4cd552184cbc5bed33da21497537df4e400a1a2f
Warn about implicit kind variables with -Wcompat

According to an accepted proposal
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/002
4-no-kind-vars.rst

    With -Wcompat, warn if a kind variable is brought into scope
    implicitly in a type with an explicit forall. This applies to type
    signatures and to other contexts that allow a forall with the
    forall-or-nothing rule in effect (for example, class instances).

Test Plan: Validate

Reviewers: goldfire, hvr, bgamari, RyanGlScott

Reviewed By: goldfire

Subscribers: RyanGlScott, rwbarton, thomie, carter

GHC Trac Issues: #15264

Differential Revision: https://phabricator.haskell.org/D4834
compiler/main/DynFlags.hs
compiler/rename/RnTypes.hs
docs/users_guide/8.6.1-notes.rst
docs/users_guide/using-warnings.rst
libraries/base/Data/Typeable/Internal.hs
testsuite/tests/dependent/should_compile/T15264.hs [new file with mode: 0644]
testsuite/tests/dependent/should_compile/T15264.stderr [new file with mode: 0644]
testsuite/tests/dependent/should_compile/all.T