Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions compiler/GHC/Iface/Errors/Ppr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,17 @@ hiModuleNameMismatchWarn requested_mod read_mod
]
]
| otherwise =
-- ToDo: This will fail to have enough qualification when the package IDs
-- are the same
-- Display fully qualified unit names by enabling ppr-debug. Otherwise we
-- may not have enough qualification and the printed names could look exactly
-- the same.
updSDocContext (\ctx -> ctx { sdocPprDebug = True}) $
withPprStyle (mkUserStyle alwaysQualify AllTheWay) $
-- we want the Modules below to be qualified with package names,
-- so reset the NamePprCtx setting.
hsep [ text "Something is amiss; requested module "
, ppr requested_mod
, text "differs from name found in the interface file"
, ppr read_mod
, parens (text "if these names look the same, try again with -dppr-debug")
]

dynamicHashMismatchError :: Module -> ModLocation -> SDoc
Expand Down