X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FFinder.lhs;h=b76bd972e7bbcf4dd67b99f39f75c827f2cc3242;hp=0e36b104c3c4e6d9cda4954a95258454b7bb459f;hb=d51f42f602bf9a6d1b356c41228a534c88723f65;hpb=84c481d9e65f0a8285fddd6100a20b2cc0826b08 diff --git a/compiler/main/Finder.lhs b/compiler/main/Finder.lhs index 0e36b10..b76bd97 100644 --- a/compiler/main/Finder.lhs +++ b/compiler/main/Finder.lhs @@ -36,7 +36,7 @@ import PrelNames ( gHC_PRIM ) import DynFlags ( DynFlags(..), isOneShot, GhcMode(..) ) import Outputable import FiniteMap -import UniqFM +import LazyUniqFM import Maybes ( expectJust ) import Data.IORef ( IORef, writeIORef, readIORef, modifyIORef ) @@ -481,7 +481,7 @@ mkStubPaths dflags mod location = let stubdir = stubDir dflags - mod_basename = dots_to_slashes (moduleNameString mod) + mod_basename = moduleNameSlashes mod src_basename = dropExtension $ expectJust "mkStubPaths" (ml_hs_file location) @@ -532,12 +532,6 @@ findObjectLinkable mod obj_fn obj_time = do else return (LM obj_time mod [DotO obj_fn]) -- ----------------------------------------------------------------------------- --- Utils - -dots_to_slashes :: String -> String -dots_to_slashes = map (\c -> if c == '.' then '/' else c) - --- ----------------------------------------------------------------------------- -- Error messages cannotFindModule :: DynFlags -> ModuleName -> FindResult -> SDoc