
#8466: Aggregate “ambiguous import” errors for the same name -------------------------------------+------------------------------------ Reporter: nomeata | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by nomeata): Interesting, the field `errMsgSpans` of `ErrMsg` already has tpye `[SrcSpan]` (and not `SrcSpan`) as if someone was preparing this feature. Tracing the git history, I find that the type was introduced in 29da2cf3011c292bc4261601aff85afb13e24d54 from ten years ago by simonmar, but without an explanation of the choice... I’ll see if indeed nothing breaks if I change this to `SrcSpan` before attempting to combine the error messages. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8466#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler