summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/hpc/HpcUtils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hpc/HpcUtils.hs b/utils/hpc/HpcUtils.hs
index 73d9cd3a87..4f98556176 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 ' '