[GHC] #11418: Suggest correct spelling when module is not found because of typo

GHC ghc-devs at haskell.org
Wed Jan 13 09:35:10 UTC 2016


#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


More information about the ghc-tickets mailing list