X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Frunghc%2Frunghc.hs;h=decbdcd2ba838df17b7dabaa28e307e96fab54c3;hb=54b748e03297e970bbef9d00a96139798009af0d;hp=911d0f8f9de8558b36215079876f846a1302e9bc;hpb=1aa4db5e6883b4ffa6ea0f9c3450c0c15e40f543;p=ghc-hetmet.git diff --git a/utils/runghc/runghc.hs b/utils/runghc/runghc.hs index 911d0f8..decbdcd 100644 --- a/utils/runghc/runghc.hs +++ b/utils/runghc/runghc.hs @@ -57,8 +57,8 @@ getGhcLoc args = case args of ('-' : 'f' : ghc) : args' -> f ghc args' -- If you need the first GHC flag to be a -f flag then -- you can pass -- first - "--" : args -> (Nothing, args) - args -> (Nothing, args) + "--" : args' -> (Nothing, args') + _ -> (Nothing, args) where f ghc args' = -- If there is another -f flag later on then -- that overrules the one that we've already -- found