#14225: "No module named ... is imported" message is a bit misleading with qualified imports -------------------------------------+------------------------------------- Reporter: bgamari | Owner: RolandSenn Type: bug | Status: patch Priority: low | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST=T14225 Blocked By: | Blocking: Related Tickets: #15611 | Differential Rev(s): Phab:D5331 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"4c174dddc7b36ebf97ba0e182f843d563e3d598c/ghc" 4c174ddd/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="4c174dddc7b36ebf97ba0e182f843d563e3d598c" Misleading msg with qualified imports "No module named X imported" To check whether a given module has been imported, we do the following: From the list of all qualified names we extract the distinct module names to a list of module names. Then we check whether the given module name is in this list of module names. Test Plan: make test TEST=T14225 Reviewers: mpickering, hvr, monoidal, osa1, bgamari Reviewed By: bgamari Subscribers: rwbarton, carter GHC Trac Issues: #14225 Differential Revision: https://phabricator.haskell.org/D5331 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14225#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler