diff options
author | David Feuer <David.Feuer@gmail.com> | 2014-10-01 23:34:29 +0200 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2014-10-01 23:38:32 +0200 |
commit | 2a8856884de7d476e26b4ffa829ccb3a14d6f63e (patch) | |
tree | a5ba7fc47baf0cf68cf01336a38c963ad19c43b2 /testsuite/tests/plugins | |
parent | 53a2d46d185bcffe005e84b4e7acf6b196f2329e (diff) | |
download | haskell-2a8856884de7d476e26b4ffa829ccb3a14d6f63e.tar.gz |
Use dropWhileEndLE p instead of reverse . dropWhile p . reverse
Summary: Using `dropWhileEndLE` tends to be faster and easier to read
than the `reverse . dropWhile p . reverse` idiom. This also cleans up
some other, nearby, messes. Fix #9616 (incorrect number formatting
potentially leading to incorrect numbers in output).
Test Plan: Run validate
Reviewers: thomie, rwbarton, nomeata, austin
Reviewed By: nomeata, austin
Subscribers: simonmar, ezyang, carter, thomie
Projects: #ghc
Differential Revision: https://phabricator.haskell.org/D259
GHC Trac Issues: #9623, #9616
Conflicts:
compiler/basicTypes/OccName.lhs
Diffstat (limited to 'testsuite/tests/plugins')
0 files changed, 0 insertions, 0 deletions