
Hi Dimitry, you don't want to use Distribution.Compat.FilePath, it is not there anymore in future versions of Cabal, starting with 1.1.7. In my experience, the only things that you will miss in filepath are those exeExtension, dllExtension... functions. It may be reasonable to import those from Compat.FilePath if you want, because they are kept (in another module I believe) in Cabal 1.1.7. Or better, update to Cabal 1.1.7 and import theM from the right module To unhide the module, you need to list Cabal as a dependency in the Cabal descriptor. Cheers pepe On 16/07/2007, at 5:38, Dimitry Golubovsky wrote:
Hi,
I'm trying to bring HSFFIG in order and make it work with GHC 6.6 and the modern package structure. I have found out that the Distribution.Compat.FilePath module (which used to be System.FilePath in its former life) is hidden:
programs/ffipkg.hs:11:7: Could not find module `Distribution.Compat.FilePath': it is hidden (in package Cabal-1.1.6.2)
I cannot use the new FilePath package because it does not have function like exeExtension.
Other functions (splitFileExt, parseSearchPath, joinFileName, join FileExt) probably have their analogs in the new package. What else can I use for exeExtension?
Thanks.
-- Dimitry Golubovsky
Anywhere on the Web _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users