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-02 22:13:29 +0200 |
commit | 9bf5228fdc1937f44901a945553eea3cb0f14faa (patch) | |
tree | 243925bae6f8869cca1df8595c17c0467b9d5998 /compiler/specialise | |
parent | d6d5c127b86dc186b25add2843cb83fc12e72a85 (diff) | |
download | haskell-9bf5228fdc1937f44901a945553eea3cb0f14faa.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 'compiler/specialise')
0 files changed, 0 insertions, 0 deletions