Changed OverLit warnings to work with negative literals (#13257)
authorRupert Horlick <ruperthorlick@gmail.com>
Mon, 6 Mar 2017 18:43:34 +0000 (13:43 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 6 Mar 2017 22:23:01 +0000 (17:23 -0500)
commit3fdabe9873e311571f614d455d1b16bc3f4fdc0f
tree4ea10e682a014f677c86beb02d7e63dedcfb9540
parent016b10c50e365ca62a9baffa1c590f4efa8db409
Changed OverLit warnings to work with negative literals (#13257)

Test Plan: Validate, check generated warnings

Reviewers: austin, bgamari, dfeuer

Reviewed By: bgamari, dfeuer

Subscribers: dfeuer, thomie

Differential Revision: https://phabricator.haskell.org/D3281
compiler/deSugar/DsExpr.hs
compiler/deSugar/MatchLit.hs
testsuite/tests/deSugar/should_compile/T13257.hs [new file with mode: 0644]
testsuite/tests/deSugar/should_compile/T13257.stderr [new file with mode: 0644]
testsuite/tests/deSugar/should_compile/all.T
testsuite/tests/numeric/should_compile/T8542.stderr