At 16:29 -0700 1999/05/03, Mark P Jones wrote:
>| Diagnosis:
>|   importing modules have to be higher in file hierarchy
>|   than imported modules
>|
>| ...
>
>I think you're just running into one of the limitations of the
>import chasing mechanism.  A relevant quote from the Hugs user
>manual is:
>
>  "You should also be aware that Hugs uses the names of files in
>  deciding whether a particular import has already been loaded, so
>  you should avoid situations where a single file is referred to
>  by more than one name.  For example, you should not assume that
>  Hugs will be able to determine whether Demo.hs and ./Demo.hs are
>  references to the same file. "
...
>But, for now, I'm afraid this is one of the rare situations
>where you need to switch import chasing off (-i) and either load the
>files manually or use a project file.

Or setting the file paths so that file ./Demo.hs can be found under the
name Demo.hs, and avoid hard-coded filepaths in the sources.

  Hans Aberg
                  * Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

Reply via email to