git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Pass foreigns map to buildMakeActions in PSCi
91194b3Phil Freeman
.gitignore+1
@@ -9,4 +9,5 @@ cabal.sandbox.config
9*.lksh*
9*.lksh*
10.virthualenv
10.virthualenv
11.psci_modules/
11.psci_modules/
12+bower_components/
12tmp/
13tmp/
psci/PSCi.hs+1−1
@@ -248,7 +248,7 @@ indexFile = ".psci_modules" ++ pathSeparator : "index.js"
248make :: PSCiState -> [(Either P.RebuildPolicy FilePath, P.Module)] -> Make P.Environment
248make :: PSCiState -> [(Either P.RebuildPolicy FilePath, P.Module)] -> Make P.Environment
249make PSCiState{..} ms =
249make PSCiState{..} ms =
250 let filePathMap = M.fromList $ (first P.getModuleName . swap) `map` (psciLoadedModules ++ ms)
250 let filePathMap = M.fromList $ (first P.getModuleName . swap) `map` (psciLoadedModules ++ ms)
251− in P.make (buildMakeActions filePathMap M.empty) (psciLoadedModules ++ ms)
251+ in P.make (buildMakeActions filePathMap (M.map snd psciForeignFiles)) (psciLoadedModules ++ ms)
252
252
253-- |
253-- |
254-- Takes a value declaration and evaluates it with the current state.
254-- Takes a value declaration and evaluates it with the current state.