Add missing case in removePrefix
authorIan Lynagh <igloo@earth.li>
Wed, 11 Apr 2007 00:25:37 +0000 (00:25 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 11 Apr 2007 00:25:37 +0000 (00:25 +0000)
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