File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
cabal-install/src/Distribution/Client/ProjectConfig Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ import Distribution.Simple.Setup
127
127
import Distribution.Simple.Utils
128
128
( debug
129
129
, lowercase
130
+ , ordNub
130
131
)
131
132
import Distribution.Types.CondTree
132
133
( CondBranch (.. )
@@ -274,7 +275,7 @@ parseProjectSkeleton cacheDir httpTransport verbosity importsBy projectDir sourc
274
275
275
276
-- Once we canonicalize the import path, we can check for cyclical and duplicate imports
276
277
normLocPath@ (ProjectConfigPath (uniqueImport :| _)) <- canonicalizeConfigPath projectDir importLocPath
277
- seenImportsBy@ (fmap fst -> seenImports) <- atomicModifyIORef' importsBy (\ ibs -> (nub $ (uniqueImport, normLocPath) : ibs, ibs))
278
+ seenImportsBy@ (fmap fst -> seenImports) <- atomicModifyIORef' importsBy (\ ibs -> (ordNub $ (uniqueImport, normLocPath) : ibs, ibs))
278
279
279
280
debug verbosity $ " \n import path, normalized\n =======================\n " ++ render (docProjectConfigPath normLocPath)
280
281
debug verbosity " \n seen unique paths\n ================="
You can’t perform that action at this time.
0 commit comments