Allow visible type application for []
authorRyan Scott <ryan.gl.scott@gmail.com>
Wed, 19 Jul 2017 19:06:12 +0000 (15:06 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 19 Jul 2017 20:00:31 +0000 (16:00 -0400)
commitc9e4c861c6855e03bd14b182d2173da559e98d85
tree11e8d738c6fbfaf86fe148a0b1822964dabb4331
parenta051b555e32d7d8a08472e36be4cb08716d6d8ad
Allow visible type application for []

This amounts to a one-line change in `tcExpr`. I've added a Note to
explain what is going on.

This requires a separate change in the pattern-match checker to
account for the fact that typechecked `[]` expressions become
`ConLikeOut`s, not `ExplicitList`s.

Test Plan: make test TEST=T13680

Reviewers: goldfire, mpickering, austin, bgamari

Reviewed By: mpickering, bgamari

Subscribers: rwbarton, thomie, goldfire

GHC Trac Issues: #13680

Differential Revision: https://phabricator.haskell.org/D3733
compiler/typecheck/TcExpr.hs
testsuite/tests/typecheck/should_compile/T13680.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T