[commit: ghc] master: Fix comment about dropWhileEndLE (6534686)

git at git.haskell.org git at git.haskell.org
Sat Nov 1 10:37:45 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/65346865f1177fc89767de09604376ffea45bd4d/ghc

>---------------------------------------------------------------

commit 65346865f1177fc89767de09604376ffea45bd4d
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sat Nov 1 11:37:53 2014 +0100

    Fix comment about dropWhileEndLE


>---------------------------------------------------------------

65346865f1177fc89767de09604376ffea45bd4d
 utils/hpc/HpcUtils.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/hpc/HpcUtils.hs b/utils/hpc/HpcUtils.hs
index 73d9cd3..4f98556 100644
--- a/utils/hpc/HpcUtils.hs
+++ b/utils/hpc/HpcUtils.hs
@@ -4,7 +4,7 @@ import Trace.Hpc.Util
 import qualified Data.Map as Map
 
 dropWhileEndLE :: (a -> Bool) -> [a] -> [a]
--- Spec: dropWhileEndLE p = reverse . dropWhileEnd . reverse
+-- Spec: dropWhileEndLE p = reverse . dropWhile p . reverse
 dropWhileEndLE p = foldr (\x r -> if null r && p x then [] else x:r) []
 
 -- turns \n into ' '



More information about the ghc-commits mailing list