Skip to content

Commit d372b4b

Browse files
committed
disable boot fake import dependency
1 parent 7b2f5a4 commit d372b4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ghcide/src/Development/IDE/Core/Rules.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ getLocatedImportsRule =
351351
Right (FileImport path) -> pure ([], Just (modName, Just path))
352352
Right PackageImport -> pure ([], Nothing)
353353

354+
{- IS THIS REALLY NEEDED? DOESNT SEEM SO
355+
354356
-- does this module have an hs-boot file? If so add a direct dependency
355357
let bootPath = toNormalizedFilePath' $ fromNormalizedFilePath file <.> "hs-boot"
356358
boot <- use GetFileExists bootPath
@@ -360,6 +362,8 @@ getLocatedImportsRule =
360362
loc <- liftIO $ mkHomeModLocation dflags modName (fromNormalizedFilePath bootPath)
361363
return $ Just (noLoc modName, Just (ArtifactsLocation bootPath (Just loc) True))
362364
else pure Nothing
365+
-}
366+
let bootArtifact = Nothing
363367

364368
let moduleImports = catMaybes $ bootArtifact : imports'
365369
pure (concat diags, Just moduleImports)

0 commit comments

Comments
 (0)