Feature request for ghci
Martin Norbäck
martin.norback@safelogic.se
12 Sep 2002 15:25:45 +0200
--=-uCYVDfP4aTZNYZG17lKB
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Assume this situation
Test/
Foo.hs <- this is module Test.Foo
Bar.hs <- this is module Test.Bar
Test.Foo imports Test.Bar
If I cd into Test, and do ghci Bar.hs everything is fine, module
Test.Bar is loaded.
If I do ghci Foo.hs it complains about not being able to find Test.Bar.
My request is that ghci looks "up" in the hierarchy and assumes that the
user wants too look for modules in .. if the module Test.Foo lies in the
file Foo.hs
Of course this will not always work, symlinks and other things, but it
would be useful. Now I have to do "cd ..; ghci -i. Test.Foo" instead.
Regards,
Martin
--=20
Martin Norb=E4ck Safelogic AB
martin.norback@safelogic.se Stena Center 1C
+46 (0)31 772 81 70 S-412 92 G=D6TEBORG
http://www.safelogic.se SWEDEN
--=-uCYVDfP4aTZNYZG17lKB
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: För information se http://www.gnupg.org/
iD8DBQA9gJXZ3YauxIdkXLgRAtFSAJ9bndWdZ7gIrbsmQ+f6SUsJ0+TlAACfY1JI
4dp8zNo5q89xoJp3eXcdccs=
=AHo3
-----END PGP SIGNATURE-----
--=-uCYVDfP4aTZNYZG17lKB--