Register the access to the package database when compiling with GHC
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Tue, 10 Oct 2017 14:38:30 +0000 (15:38 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Tue, 10 Oct 2017 14:38:30 +0000 (15:38 +0100)
src/Rules/Compile.hs

index c71079a..a4b1278 100644 (file)
@@ -17,7 +17,7 @@ compilePackage rs context@Context {..} = do
             src <- obj2src context obj
             need [src]
             needDependencies context src $ obj <.> "d"
-            build $ target context (compiler stage) [src] [obj]
+            buildWithResources rs $ target context (compiler stage) [src] [obj]
         compileHs = \[obj, _hi] -> do
             path <- buildPath context
             (src, deps) <- lookupDependencies (path -/- ".dependencies") obj