Fix panic on [t| _ |] (Trac #9879)
authorThomas Winant <thomas.winant@cs.kuleuven.be>
Mon, 15 Dec 2014 15:47:07 +0000 (09:47 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 15 Dec 2014 15:47:07 +0000 (09:47 -0600)
commit48222831ae392cb556707b6b290a4dcc2677d97b
tree39ad95d76445d264fdaa7841ba0baed5c4234540
parentbd0f9e1fad6ab69b5967247b32fd8f9305b064a5
Fix panic on [t| _ |] (Trac #9879)

Summary:
Type brackets containing a wildcard, e.g. `[t| _ |]`, caused a panic.
Fix it by disallowing wildcards in type brackets.

Together with D572, this fixes #9879.

Test Plan: new test WildcardInTypeBrackets should pass

Reviewers: austin

Reviewed By: austin

Subscribers: carter, thomie, monoidal

Differential Revision: https://phabricator.haskell.org/D573

GHC Trac Issues: #9879
compiler/parser/Parser.y
testsuite/tests/partial-sigs/should_fail/WildcardInTypeBrackets.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/WildcardInTypeBrackets.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/all.T