Skip to content
Snippets Groups Projects
Commit 338ea062 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix -Wall warnings

parent 4059af5d
No related branches found
No related tags found
No related merge requests found
......@@ -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 ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment