haskell/filepath — pull request #2 by treeowl (2014-09-21 19:02:37+00:00)
Title: Use dropWhileEnd

`dropWhileEnd p xs` is pretty much equivalent to `reverse $ dropWhile p $ reverse xs` (aside from being a bit lazier), but is easier to read and more efficient. There are some other shady-looking uses of reverse around, but this one looks particularly easy to deal with.