Refactor visible type application.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 23 Feb 2016 14:51:50 +0000 (09:51 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Tue, 15 Mar 2016 01:44:17 +0000 (21:44 -0400)
commit972730cc42a419b8cd148abaa927e03415da3a68
treebcafe558128635cf05f679caf6270e9918dbe74d
parent35d37ff8a0bb9f64f347c8e4b6a24d49fd08c9dc
Refactor visible type application.

This replaces the old HsType and HsTypeOut constructors
with HsAppType and HsAppTypeOut, leading to some simplification.
(This refactoring addresses #11329.)

This also fixes #11456, which stumbled over HsType (which is
not an expression).

test case: ghci/scripts/T11456

[skip ci]
17 files changed:
compiler/deSugar/Coverage.hs
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsMeta.hs
compiler/hsSyn/HsExpr.hs
compiler/hsSyn/HsUtils.hs
compiler/parser/Parser.y
compiler/rename/RnExpr.hs
compiler/rename/RnSource.hs
compiler/typecheck/TcExpr.hs
compiler/typecheck/TcHsSyn.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/ghci/scripts/T11456.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/T11456.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T11456.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T
testsuite/tests/typecheck/should_fail/T9605.stderr
testsuite/tests/typecheck/should_fail/VtaFail.stderr