We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 436b6b8 commit 3be9351Copy full SHA for 3be9351
ghcide/src/Development/IDE/Core/Compile.hs
@@ -1111,7 +1111,7 @@ getModSummaryFromImports env fp _modTime mContents = do
1111
modLoc <- liftIO $ if mod == mAIN_NAME
1112
-- specially in tests it's common to have lots of nameless modules
1113
-- mkHomeModLocation will map them to the same hi/hie locations
1114
- then mkHomeModLocation dflags (pathToModuleName fp) fp
+ then mkHomeModLocation dflags mod fp
1115
else mkHomeModLocation dflags mod fp
1116
1117
let modl = mkHomeModule (hscHomeUnit ppEnv) mod
0 commit comments