aboutsummaryrefslogtreecommitdiff
path: root/src/Fpm.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fpm.hs')
-rw-r--r--src/Fpm.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fpm.hs b/src/Fpm.hs
index e823e7f..2caf6e4 100644
--- a/src/Fpm.hs
+++ b/src/Fpm.hs
@@ -569,7 +569,7 @@ buildDependencies
-> IO [(FilePath, FilePath)]
buildDependencies buildPrefix compiler flags dependencies = do
built <- concatMapM (buildDependency buildPrefix compiler flags) dependencies
- return $ nub built
+ return $ reverse (nub (reverse built))
buildDependency
:: String -> String -> [String] -> DependencyTree -> IO [(FilePath, FilePath)]