aboutsummaryrefslogtreecommitdiffhomepage
path: root/Setup.hs
diff options
context:
space:
mode:
authorGravatar Ian Lynagh <igloo@earth.li>2007-04-11 00:26:04 +0000
committerGravatar Ian Lynagh <igloo@earth.li>2007-04-11 00:26:04 +0000
commit4059af5da681cea41d8b778b6180a0b7bd78c76e (patch)
tree11e855b467ee26132281d041dfe8fe3293a6bfa8 /Setup.hs
parent8c291e5006db9e9a42ee27fbbcfca044fb05bfae (diff)
Add missing case in removePrefix
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Setup.hs b/Setup.hs
index cf84de0..c35fcf9 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -38,6 +38,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