Fix references to Filepath
authorClemens Fruhwirth <clemens@endorphin.org>
Thu, 17 Jan 2008 13:41:39 +0000 (13:41 +0000)
committerClemens Fruhwirth <clemens@endorphin.org>
Thu, 17 Jan 2008 13:41:39 +0000 (13:41 +0000)
compiler/main/DriverPipeline.hs

index 39feb18..1f81249 100644 (file)
@@ -1097,8 +1097,8 @@ runPhase_MoveBinary dflags input_fn dep_packages
        case (dynLibLoader dflags) of
          Wrapped wrapmode ->
              do
-               let (o_base, o_ext) = splitFilename input_fn
-               let wrapped_executable | o_ext == "exe" = (o_base ++ "_real") `joinFileExt` o_ext
+               let (o_base, o_ext) = splitExtension input_fn
+               let wrapped_executable | o_ext == "exe" = (o_base ++ "_real") <.> o_ext
                                       | otherwise = input_fn ++ "_real"
                behaviour <- wrapper_behaviour dflags wrapmode dep_packages