Skip to content

Commit

Permalink
Add haddocks to IORef parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Apr 24, 2024
1 parent 76852ca commit 8b4de4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,15 @@ parseProject rootPath cacheDir httpTransport verbosity configToParse = do
let (dir, projectFileName) = splitFileName rootPath
projectDir <- makeAbsolute dir
projectPath@(ProjectConfigPath (canonicalRoot :| _)) <- canonicalizeConfigPath projectDir (ProjectConfigPath $ projectFileName :| [])
importsBy :: IORef [(FilePath, ProjectConfigPath)] <- newIORef [(canonicalRoot, projectPath)]
importsBy <- newIORef [(canonicalRoot, projectPath)]
parseProjectSkeleton cacheDir httpTransport verbosity importsBy projectDir projectPath configToParse

parseProjectSkeleton
:: FilePath
-> HttpTransport
-> Verbosity
-> IORef [(FilePath, ProjectConfigPath)]
-- ^ The imports seen so far, used to report on cycles and duplicates and to detect duplicates that are not cycles
-> FilePath
-- ^ The directory of the project configuration, typically the directory of cabal.project
-> ProjectConfigPath
Expand Down

0 comments on commit 8b4de4a

Please sign in to comment.