From a26d126c7457059d9d89d0cccacee8cc1136d59c Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 30 Jun 2010 15:34:37 +0000 Subject: fix warning --- src/Haddock/Utils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Haddock') diff --git a/src/Haddock/Utils.hs b/src/Haddock/Utils.hs index ab0d03b7..45c64e57 100644 --- a/src/Haddock/Utils.hs +++ b/src/Haddock/Utils.hs @@ -373,7 +373,7 @@ replace :: Eq a => a -> a -> [a] -> [a] replace a b = map (\x -> if x == a then b else x) spanWith :: (a -> Maybe b) -> [a] -> ([b],[a]) -spanWith _ [] = ([],[]) +spanWith p [] = ([],[]) spanWith p xs@(a:as) | Just b <- p a = let (bs,cs) = spanWith p as in (b:bs,cs) | otherwise = ([],xs) -- cgit v1.2.3