Implement OverloadedLabels
authorAdam Gundry <adam@well-typed.com>
Tue, 17 Nov 2015 14:50:33 +0000 (15:50 +0100)
committerBen Gamari <ben@smart-cactus.org>
Tue, 17 Nov 2015 15:58:49 +0000 (16:58 +0100)
commit7b962bab384e2ae85b41d30f503c3d0295b0214f
treeaa93fb85a17988e6abdcaea362fbe6ae64a478d7
parentacce37f38bc3867f86cf717694915746bb2f278e
Implement OverloadedLabels

See
https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/OverloadedLabels
for the big picture.

Reviewers: goldfire, simonpj, austin, hvr, bgamari

Reviewed By: simonpj, bgamari

Subscribers: kosmikus, thomie, mpickering

Differential Revision: https://phabricator.haskell.org/D1331
33 files changed:
compiler/deSugar/Coverage.hs
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsMeta.hs
compiler/deSugar/Match.hs
compiler/hsSyn/HsExpr.hs
compiler/main/DynFlags.hs
compiler/parser/Lexer.x
compiler/parser/Parser.y
compiler/prelude/PrelNames.hs
compiler/rename/RnExpr.hs
compiler/typecheck/TcEvidence.hs
compiler/typecheck/TcExpr.hs
compiler/typecheck/TcHsSyn.hs
compiler/typecheck/TcRnTypes.hs
libraries/base/GHC/OverloadedLabels.hs [new file with mode: 0644]
libraries/base/base.cabal
testsuite/tests/driver/T4437.hs
testsuite/tests/overloadedrecflds/ghci/all.T
testsuite/tests/overloadedrecflds/ghci/overloadedlabelsghci01.script [new file with mode: 0644]
testsuite/tests/overloadedrecflds/ghci/overloadedlabelsghci01.stdout [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_fail/all.T
testsuite/tests/overloadedrecflds/should_fail/overloadedlabelsfail01.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_fail/overloadedlabelsfail01.stderr [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/OverloadedLabelsRun04_A.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/all.T
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun01.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun01.stdout [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun02.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun02.stdout [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun03.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun03.stdout [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun04.hs [new file with mode: 0644]
testsuite/tests/overloadedrecflds/should_run/overloadedlabelsrun04.stdout [new file with mode: 0644]