Handle types w/ type variables in signatures inside patterns (DsMeta)
authorMikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
Sat, 5 Nov 2016 22:06:39 +0000 (22:06 +0000)
committerMatthew Pickering <matthewtpickering@gmail.com>
Sat, 5 Nov 2016 22:07:30 +0000 (22:07 +0000)
commitb0121209f8fb47a7cb8fc32e10d8e2c06d4502c2
tree5bfb1e8eaa580b3b5ad6bbc08176e8f2fd90c1bd
parent2cdd9bd5208e3ad78d7a3b8b82c8ae1be486b34d
Handle types w/ type variables in signatures inside patterns (DsMeta)

The comment indicated that scoping of type variables was a large problem
but Simon fixed it in e21e13fb52b99b14770cc5857df57bbcc9c85102.

Thus, we can implement repP for signatures very easily in the usual way
now.

Reviewers: goldfire, simonpj, austin, bgamari

Reviewed By: simonpj

Subscribers: mpickering, simonpj, thomie

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

GHC Trac Issues: #12164
compiler/deSugar/DsMeta.hs
testsuite/tests/partial-sigs/should_compile/PatternSplice.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_compile/all.T
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardInPatternSplice.hs
testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardInPatternSplice.stderr
testsuite/tests/th/TH_repPatSig.hs
testsuite/tests/th/TH_repPatSig.stderr [deleted file]
testsuite/tests/th/TH_repPatSigTVar.hs [new file with mode: 0644]
testsuite/tests/th/TH_repPatSigTVar.stderr [new file with mode: 0644]
testsuite/tests/th/TH_repPatSig_asserts.hs [new file with mode: 0644]
testsuite/tests/th/all.T