
All in all, dropping all implicit directories from the search path gets my vote.
"me too". I wasn't aware that Hugs did this, and GHCi certainly doesn't. It's reasonable to leave "." in the default search path, but adding an implicit root for an imported module will certainly lead to trouble - after all, we use hierarchical module names because the modules at the leaves of the tree are expected to overlap. Cheers, Simon

On Thursday, April 25, 2002, at 11:30 , Simon Marlow wrote:
All in all, dropping all implicit directories from the search path gets my vote.
"me too".
I wasn't aware that Hugs did this, and GHCi certainly doesn't. It's reasonable to leave "." in the default search path, but adding an implicit root for an imported module will certainly lead to trouble - after all, we use hierarchical module names because the modules at the leaves of the tree are expected to overlap.
But it is this "." in the default path that is the reason GHCi gives unexpected results, isn't it? [See Hal Daume's original bug report] Also, even if we have no implicit roots, an explicit "." in the search path might give rise to exactly the same problems. This is only better than the current status in the sense that we can say "the programmer asked for it"... -- Johan

FYI - I've added a :settable toggle to Hugs which controls whether
or not to include the directory of the importing module, e.g.,
:set -X
turns off the default of adding the directory.
I believe that captures the outcome of this e-mail firestorm; please
correct me if not.
--sigbjorn
----- Original Message -----
From: "Simon Marlow"
All in all, dropping all implicit directories from the search path gets my vote.
"me too".
I wasn't aware that Hugs did this, and GHCi certainly doesn't. It's reasonable to leave "." in the default search path, but adding an implicit root for an imported module will certainly lead to trouble - after all, we use hierarchical module names because the modules at the leaves of the tree are expected to overlap.
Cheers, Simon _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (3)
-
Johan Nordlander
-
Sigbjorn Finne
-
Simon Marlow