Error (?) with relative paths
Version: March 1999
OS       Linux 2.0.35 (Suse5.3)


Diagnosis:
  importing modules have to be higher in file hierarchy
  than imported modules

Scenario:
 ./A/A.hs:    module A (module A)
              where a = "a"

 ./B/B.hs:    module B where
              import "../A/A"

 ./C/C.hs:     module C  where
              import "../B/B"

$> hugs C/C.hs            ---->   OK

===== BUT ====== :

$> cd C
$> hugs C.hs

Reading file "C.hs":
Reading file "../B/B.hs":
Reading file "../B/../B/../A/A.hs":
Reading file "../B/B.hs":
ERROR "../B/B.hs": Module "../B/../A/A.hs" not previously loaded


(Same with hugs ../C/C.hs)




Regards, Wolfgang

Reply via email to