Add missing case in removePrefix
[ghc-base.git] / Setup.hs
index ae4f600..eff2859 100644 (file)
--- a/Setup.hs
+++ b/Setup.hs
@@ -53,6 +53,7 @@ extractPrefixArgs prefix args
 
 removePrefix :: String -> String -> Maybe String
 removePrefix "" ys = Just ys
+removePrefix _  "" = Nothing
 removePrefix (x:xs) (y:ys)
  | x == y = removePrefix xs ys
  | otherwise = Nothing