cannot switch to qualified module names in ghci

Simon Marlow
Thu, 28 Feb 2002 10:21:40 -0000

> It seems that if you are in a module X which imports Foo.Bar,=20
> 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 =3D isAlphaNum c || c =3D=3D '_' || c =3D=3D '.'
> it seems that the code in setContext and newContext know how to handle
> qualified module name switches; it's just being blocked=20
> before they can
> try.

Thanks, fixed.