FilePath fixes
authorIan Lynagh <igloo@earth.li>
Sat, 12 Jan 2008 17:28:37 +0000 (17:28 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 12 Jan 2008 17:28:37 +0000 (17:28 +0000)
compiler/main/DriverPipeline.hs
compiler/main/Finder.lhs

index ef2c239..59fb3af 100644 (file)
@@ -58,7 +58,6 @@ import Data.List      ( isSuffixOf )
 import Data.Maybe
 import System.Exit
 import System.Environment
 import Data.Maybe
 import System.Exit
 import System.Environment
-import System.FilePath
 
 -- ---------------------------------------------------------------------------
 -- Pre-process
 
 -- ---------------------------------------------------------------------------
 -- Pre-process
index 61bf196..0e36b10 100644 (file)
@@ -481,9 +481,9 @@ mkStubPaths dflags mod location
   = let
         stubdir = stubDir dflags
 
   = let
         stubdir = stubDir dflags
 
-               mod_basename = dots_to_slashes (moduleNameString mod)
-               src_basename = basenameOf (expectJust "mkStubPaths" 
-                                               (ml_hs_file location))
+        mod_basename = dots_to_slashes (moduleNameString mod)
+        src_basename = dropExtension $ expectJust "mkStubPaths" 
+                                                  (ml_hs_file location)
 
         stub_basename0
             | Just dir <- stubdir = dir </> mod_basename
 
         stub_basename0
             | Just dir <- stubdir = dir </> mod_basename