Skip to content

Commit

Permalink
Always specify filepath when inferring foreign modules
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed May 15, 2016
1 parent b835de9 commit 16c6f76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Language/PureScript/Ide/Rebuild.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ rebuildFile path = do

outputDirectory <- confOutputPath . envConfiguration <$> ask

-- Infer foreign modules using their file paths
-- For rebuilding, we want to 'RebuildAlways', but for inferring foreign
-- modules using their file paths, we need to specify the path in the 'Map'.
let filePathMap = M.singleton (P.getModuleName m) (Left P.RebuildAlways)
foreigns <- P.inferForeignModules filePathMap
foreigns <- P.inferForeignModules (M.singleton (P.getModuleName m) (Right path))

-- Silence progress update messages during the build
let actions = (P.buildMakeActions outputDirectory filePathMap foreigns False)
Expand Down

0 comments on commit 16c6f76

Please sign in to comment.