git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #1174, check foreign files for staleness
commit3a1df02664bd3129012096a3628d4c5815f3a51a authorPhil Freeman <paf31@cantab.net> dateThu 18 Jun 2015, 19:14 (11 years ago) parente748a7b
1 file changed+3−1
psc-make/Make.hs+3−1
psc-make/Make.hs+3−1
@@ -74,7 +74,9 @@ buildMakeActions outputDir filePathMap foreigns usePrefix =
7474 getInputTimestamp :: P.ModuleName -> Make (Either P.RebuildPolicy (Maybe UTCTime))
7575 getInputTimestamp mn = do
7676 let path = fromMaybe (error "Module has no filename in 'make'") $ M.lookup mn filePathMap
77− traverseEither getTimestamp path
77+ e1 <- traverseEither getTimestamp path
78+ fPath <- maybe (return Nothing) (getTimestamp . fst) $ M.lookup mn foreigns
79+ return $ fmap (max fPath) e1
7880
7981 getOutputTimestamp :: P.ModuleName -> Make (Maybe UTCTime)
8082 getOutputTimestamp mn = do