Fixes the -B path for the ghcWrapper.
authorMoritz Angermann <moritz.angermann@gmail.com>
Thu, 31 Dec 2015 02:40:37 +0000 (10:40 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Thu, 31 Dec 2015 02:40:37 +0000 (10:40 +0800)
src/Rules/Wrappers/Ghc.hs

index 93ceba0..c24bb70 100644 (file)
@@ -11,4 +11,4 @@ ghcWrapper program = do
     return $ unlines
         [ "#!/bin/bash"
         , "exec " ++ (top -/- program)
-          ++ " -B" ++ (top -/- takeDirectory program) ++ " ${1+\"$@\"}" ]
+          ++ " -B" ++ (top -/- "inplace" -/- "lib") ++ " ${1+\"$@\"}" ]