cannot switch to qualified module names in ghci

Simon Marlow simonmar@microsoft.com
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.
>=20
> X> :m Bar
> can't find module `Bar'
> X> :m Foo.Bar
> strange looking module name: `Foo.Bar'
>=20
> It appears the remedy to this would be to modify the definition of
> isAlphaNumEx in ghci/InteractiveUI.hs to:
>=20
>   isAlphaNumEx c =3D isAlphaNum c || c =3D=3D '_' || c =3D=3D '.'
>=20
> 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.

Simon