diff options
-rw-r--r-- | lib/Distribution/Helper.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs index 5df54b8..7448b2b 100644 --- a/lib/Distribution/Helper.hs +++ b/lib/Distribution/Helper.hs @@ -592,7 +592,7 @@ readProjInfo qe pc pcm pi = withVerbosity $ do return ProjInfo { piCabalVersion = makeDataVersion pjCabalLibVersion , piProjConfModTimes = pcm - , piPackages = pkgs + , piPackages = NonEmpty.sortWith pPackageName pkgs , piImpl = ProjInfoV2 { piV2Plan = plan , piV2PlanModTime = plan_mtime @@ -610,7 +610,7 @@ readProjInfo qe pc pcm pi = withVerbosity $ do return ProjInfo { piCabalVersion = cabalVer , piProjConfModTimes = pcm - , piPackages = pkgs + , piPackages = NonEmpty.sortWith pPackageName pkgs , piImpl = ProjInfoStack } |