Make XNegativeLiterals treat -0.0 as negative 0
authorNolan <nolane16@gmail.com>
Mon, 8 May 2017 21:46:22 +0000 (17:46 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 8 May 2017 21:46:24 +0000 (17:46 -0400)
commit0279b745c29213c479b61f864ca5d3d2ae76ac77
tree6f5fb39ddcdb142f017e9196ddc480971eb661ae
parentdc3b4af6d0c38ced4f0becf575474a1c1b08f794
Make XNegativeLiterals treat -0.0 as negative 0

Reviewers: austin, goldfire, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, mpickering

GHC Trac Issues: #13211

Differential Revision: https://phabricator.haskell.org/D3543
22 files changed:
compiler/basicTypes/BasicTypes.hs
compiler/deSugar/Check.hs
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsMeta.hs
compiler/deSugar/Match.hs
compiler/deSugar/MatchLit.hs
compiler/hsSyn/Convert.hs
compiler/hsSyn/HsLit.hs
compiler/hsSyn/HsUtils.hs
compiler/parser/Lexer.x
compiler/parser/Parser.y
compiler/rename/RnExpr.hs
compiler/rename/RnPat.hs
compiler/typecheck/Inst.hs
compiler/typecheck/TcGenDeriv.hs
compiler/typecheck/TcHsSyn.hs
testsuite/tests/ghc-api/annotations-literals/literals.stdout
testsuite/tests/ghc-api/annotations-literals/parsed.hs
testsuite/tests/parser/should_run/NegativeZero.hs [new file with mode: 0644]
testsuite/tests/parser/should_run/NegativeZero.stdout [new file with mode: 0644]
testsuite/tests/parser/should_run/all.T
testsuite/tests/perf/compiler/all.T