Refactor: don't use reverse explicitly (#6)
authorThomas Miedema <thomasmiedema@gmail.com>
Sat, 1 Nov 2014 12:32:37 +0000 (13:32 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Sat, 1 Nov 2014 12:41:05 +0000 (13:41 +0100)
commit881afa569b02769ef33f798d2c78d97f902bfa6a
tree3226dcbe68c7b2b632f1232842c328ecd3c31863
parentd05cbe90e5d74e30aa3544a4e3d37b3c8170d71a
Refactor: don't use reverse explicitly (#6)

I couldn't decide between the different implementations of dropWhileEnd and
takeWhileEnd from https://ghc.haskell.org/trac/ghc/ticket/9623#comment:7, so I
choose the simplest solution using two times reverse instead of foldr. See
also:
https://www.haskell.org/pipermail/libraries/2014-September/023835.html
System/FilePath/Internal.hs