cannot switch to qualified module names in ghci

Hal Daume III hdaume@ISI.EDU
Wed, 27 Feb 2002 16:32:13 -0800 (PST)

It seems that if you are in a module X which imports Foo.Bar, you cannot
use :m to get to the Bar module.

X> :m Bar
can't find module `Bar'
X> :m Foo.Bar
strange looking module name: `Foo.Bar'

It appears the remedy to this would be to modify the definition of
isAlphaNumEx in ghci/InteractiveUI.hs to:

  isAlphaNumEx c = isAlphaNum c || c == '_' || c == '.'

it seems that the code in setContext and newContext know how to handle
qualified module name switches; it's just being blocked before they can

 - Hal

Hal Daume III

 "Computer science is no more about computers    |
  than astronomy is about telescopes." -Dijkstra |