paths in ghci-5.00.1

S.D.Mechveliani mechvel at math.botik.ru
Mon Jun 18 04:12:51 EDT 2001


Hello,

ghc-5.00.1 -interactive    (binary distribution, linux i386-unknown)

finds or does not find the value  allPermuts
depending on the directory where  ghci  is run.

  ghci ... -package docon
  ...
  Prelude> Permut.allPermuts $ reverse [1..3]

The project is as follows.

d/source/  contains the sources, and  Permut.hs  too.

Everything was compiled by 
                  ghc $(HCFlags) -package-name docon --make DExport,

and all  *.o *.hi  moved to  d/e/ ,   where .o and .a libraries are 
created and referred by the package  docon.
           
Now, when  ghci  is run in  d/source/  it does not find  allPermuts,
in other directories, it finds.

Is this a bug?

-----------------
Serge Mechveliani
mechvel at botik.ru






More information about the Glasgow-haskell-bugs mailing list