aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Wrapper.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-03-28 01:23:52 +0100
committerDaniel Gröber <dxld@darkboxed.org>2015-03-28 01:35:48 +0100
commit871334f10f2d4d8033d2aca73e8df8dc6f83c02f (patch)
tree931d7bb2048e0dc17655bf1a6e5579701b1dc7ec /CabalHelper/Wrapper.hs
parent3db768d6bd5e720c9e1186415dbc36d8cd8caade (diff)
Handle inplace library deps and do a rename pass
Diffstat (limited to 'CabalHelper/Wrapper.hs')
-rw-r--r--CabalHelper/Wrapper.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/CabalHelper/Wrapper.hs b/CabalHelper/Wrapper.hs
index 933cb2f..1334a9d 100644
--- a/CabalHelper/Wrapper.hs
+++ b/CabalHelper/Wrapper.hs
@@ -237,14 +237,14 @@ compile Options {..} Compile {..} = do
, "-optP-DCABAL_MINOR=" ++ show mi
],
maybeToList $ ("-package-conf="++) <$> packageDb,
- map ("-i"++) $ cabalHelperSourceDir:maybeToList cabalSourceDir,
+ map ("-i"++) $ ".":maybeToList cabalSourceDir,
concatMap (\p -> ["-package", p]) packageDeps,
- [ "--make", cabalHelperSourceDir </> "CabalHelper/Main.hs" ]
+ [ "--make", "CabalHelper/Main.hs" ]
]
-- TODO: touch exe after, ghc doesn't do that if the input files didn't
-- actually change
- rv <- callProcessStderr' Nothing ghcProgram ghc_opts
+ rv <- callProcessStderr' (Just cabalHelperSourceDir) ghcProgram ghc_opts
return $ case rv of
ExitSuccess -> Right exe
e@(ExitFailure _) -> Left e