Allow (unparenthesized) kind signatures
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 4 Oct 2018 22:10:21 +0000 (18:10 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 4 Oct 2018 22:10:21 +0000 (18:10 -0400)
commitbace26aadaafa4064e78f9ed088c1e2217221acc
tree6e70248df2b40fbebd9c4fe2742044df0c32792c
parent85376570c5d34950b1bd8f6c575526e7ff789b84
Allow (unparenthesized) kind signatures

Summary: This allows for things like `[t :: MyKind]`, `(a :: k, b)`, and so on.

Test Plan: make TEST=T11622 && make TEST=T8708

Reviewers: RyanGlScott, bgamari, simonpj, goldfire, alanz

Reviewed By: RyanGlScott, simonpj

Subscribers: alanz, simonpj, rwbarton, mpickering, carter

GHC Trac Issues: #11622, #8708

Differential Revision: https://phabricator.haskell.org/D5173
21 files changed:
compiler/hsSyn/Convert.hs
compiler/hsSyn/HsExpr.hs
compiler/hsSyn/HsPat.hs
compiler/hsSyn/HsTypes.hs
compiler/hsSyn/HsUtils.hs
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs
docs/users_guide/8.8.1-notes.rst
testsuite/tests/ghc-api/annotations/T11018.stdout
testsuite/tests/ghc-api/annotations/T11321.stdout
testsuite/tests/indexed-types/should_fail/T7938.stderr
testsuite/tests/parser/should_compile/DumpParsedAst.stderr
testsuite/tests/parser/should_compile/DumpRenamedAst.stderr
testsuite/tests/parser/should_compile/KindSigs.hs [new file with mode: 0644]
testsuite/tests/parser/should_compile/KindSigs.stderr [new file with mode: 0644]
testsuite/tests/parser/should_compile/T11622.hs [new file with mode: 0644]
testsuite/tests/parser/should_compile/T8708.hs [new file with mode: 0644]
testsuite/tests/parser/should_compile/all.T
testsuite/tests/polykinds/T14450.stderr
testsuite/tests/polykinds/T14580.stderr
testsuite/tests/typecheck/should_fail/T15629.stderr