projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffee7da
)
Add missing case in removePrefix
author
Ian Lynagh
<igloo@earth.li>
Wed, 11 Apr 2007 00:25:37 +0000
(
00:25
+0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 11 Apr 2007 00:25:37 +0000
(
00:25
+0000)
Setup.hs
patch
|
blob
|
history
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