X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FFinder.lhs;h=0e36b104c3c4e6d9cda4954a95258454b7bb459f;hb=84c481d9e65f0a8285fddd6100a20b2cc0826b08;hp=61bf196e19063cd47564fa5ed020471d5a49021f;hpb=7eb5e29b4a7b6fef55512bc7bf3308e712ca3eba;p=ghc-hetmet.git diff --git a/compiler/main/Finder.lhs b/compiler/main/Finder.lhs index 61bf196..0e36b10 100644 --- a/compiler/main/Finder.lhs +++ b/compiler/main/Finder.lhs @@ -481,9 +481,9 @@ mkStubPaths dflags mod location = 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