forked from haskell/directory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: don't use reverse explicitly (haskell#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
- Loading branch information
Showing
1 changed file
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters