#11418: Suggest correct spelling when module is not found because of typo -------------------------------------+------------------------------------- Reporter: syd | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: Compiler | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by syd): Replying to [comment:2 nomeata]:
I think the difference to functions is that with modules, there is no list of modules in scope. And hammering the file system with random guesses is probably a bad idea...
It might work for modules that are imported from packages.
I haven't really looked into how GHC handles imports to deeply but: Does that mean ghc hammers the file system with guesses for every import? Is there not some sort of cache of previously found modules that we can check? That won't be able to correct every typo but at least every typo for modules that have been compiled already. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11418#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler