Skip to content

Commit 48842a0

Browse files
committed
Add haddocks to IORef parameter
1 parent 72a46b6 commit 48842a0

File tree

1 file changed

+2
-1
lines changed
  • cabal-install/src/Distribution/Client/ProjectConfig

1 file changed

+2
-1
lines changed

cabal-install/src/Distribution/Client/ProjectConfig/Legacy.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,15 @@ parseProject rootPath cacheDir httpTransport verbosity configToParse = do
248248
let (dir, projectFileName) = splitFileName rootPath
249249
projectDir <- makeAbsolute dir
250250
projectPath@(ProjectConfigPath (canonicalRoot :| _)) <- canonicalizeConfigPath projectDir (ProjectConfigPath $ projectFileName :| [])
251-
importsBy :: IORef [(FilePath, ProjectConfigPath)] <- newIORef [(canonicalRoot, projectPath)]
251+
importsBy <- newIORef [(canonicalRoot, projectPath)]
252252
parseProjectSkeleton cacheDir httpTransport verbosity importsBy projectDir projectPath configToParse
253253

254254
parseProjectSkeleton
255255
:: FilePath
256256
-> HttpTransport
257257
-> Verbosity
258258
-> IORef [(FilePath, ProjectConfigPath)]
259+
-- ^ The imports seen so far, used to report on cycles and duplicates and to detect duplicates that are not cycles
259260
-> FilePath
260261
-- ^ The directory of the project configuration, typically the directory of cabal.project
261262
-> ProjectConfigPath

0 commit comments

Comments
 (0)