aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Curcic <caomaco@gmail.com>2020-06-12 13:01:26 -0400
committerGitHub <noreply@github.com>2020-06-12 13:01:26 -0400
commitf97260ef5b5dfe9e2872394a4539090e71e1ceff (patch)
treea5cd9ac4d3cb4e8a7f5786e8be1f118b3ddfa051
parent91e95b0ab00278c2dfa90b7ea86d8e95604cd308 (diff)
parent3f5c3af2b5d334e62190a59b2551fc2851282fae (diff)
downloadfpm-f97260ef5b5dfe9e2872394a4539090e71e1ceff.tar.gz
fpm-f97260ef5b5dfe9e2872394a4539090e71e1ceff.zip
Merge pull request #95 from everythingfunctional/FixLibraryOrdering
Fix ordering for library archive list
-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)]