diff options
author | Ian Lynagh <igloo@earth.li> | 2007-04-11 00:50:26 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-04-11 00:50:26 +0000 |
commit | 22d0fcd543342c28208741a093a315e04abdec32 (patch) | |
tree | fb8705acd1bbd0d36a3a5762f01cf293f54ae88f /libraries/template-haskell | |
parent | 59f172839ada96ce9c3602f73b54fb1bac2ded3e (diff) | |
download | haskell-22d0fcd543342c28208741a093a315e04abdec32.tar.gz |
Fix -Wall warnings
Diffstat (limited to 'libraries/template-haskell')
-rw-r--r-- | libraries/template-haskell/Setup.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libraries/template-haskell/Setup.hs b/libraries/template-haskell/Setup.hs index c35fcf969c..3e5f12e668 100644 --- a/libraries/template-haskell/Setup.hs +++ b/libraries/template-haskell/Setup.hs @@ -4,7 +4,6 @@ module Main (main) where import Data.List import Distribution.Simple import Distribution.PackageDescription -import Distribution.PreProcess import Distribution.Setup import Distribution.Simple.LocalBuildInfo import System.Environment @@ -25,11 +24,11 @@ extractConfigureArgs :: [String] -> ([String], [String]) extractConfigureArgs = extractPrefixArgs "--configure-option=" extractPrefixArgs :: String -> [String] -> ([String], [String]) -extractPrefixArgs prefix args +extractPrefixArgs the_prefix args = let f [] = ([], []) f (x:xs) = case f xs of (wantedArgs, otherArgs) -> - case removePrefix prefix x of + case removePrefix the_prefix x of Just wantedArg -> (wantedArg:wantedArgs, otherArgs) Nothing -> |