Fix for built-in Natural literals desugaring
authorSylvain Henry <hsyl20@gmail.com>
Fri, 6 Jul 2018 15:01:14 +0000 (11:01 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 6 Jul 2018 18:08:37 +0000 (14:08 -0400)
commit987b5e7fbacd8afd2c8463c16eac28cd68f43155
treed8b8c9875216ebc3d037bbcacb67f48f00e54ad5
parent379bb201417870482b310cf65505046650fc69b2
Fix for built-in Natural literals desugaring

The recent patch "Built-in Natural literals in Core"
(https://phabricator.haskell.org/rGHCfe770c211631e7b4c9b0b1e88ef9b6046c6
585ef) introduced a regression when desugaring large numbers.

This patch fixes it and adds a regression test.

Reviewers: hvr, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #15301

Differential Revision: https://phabricator.haskell.org/D4885
libraries/base/GHC/Natural.hs
testsuite/tests/numeric/should_run/T15301.hs [new file with mode: 0644]
testsuite/tests/numeric/should_run/T15301.stdout [new file with mode: 0644]
testsuite/tests/numeric/should_run/all.T