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
Showing
- compiler/typecheck/TcExpr.hs 31 additions, 0 deletionscompiler/typecheck/TcExpr.hs
- testsuite/tests/typecheck/should_compile/T13680.hs 5 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T13680.hs
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment