projects
/
haskell-directory.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add missing case in removePrefix
[haskell-directory.git]
/
Setup.hs
diff --git
a/Setup.hs
b/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