Why hide Distribution.Compat.FilePath, or what to use instead?

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

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

help haskell for web code Powered by MessageSoft SMG SPAM, virus-free and secure email

From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] On Behalf Of ???
help haskell for web code
http://www.haskell.org/haskellwiki/Applications_and_libraries/Web_programmin... Try a few of these out (whatever meets your needs). For web apps WASH and HAppS seem popular. Feel free to ask the haskell-café list for further help. Alistair ***************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. *****************************************************************
participants (4)
-
Bayley, Alistair
-
Dimitry Golubovsky
-
Pepe Iborra
-
王清军