
Yes, GHC itself has exactly this problem. We use one method for Windows (the one you describe) and a different one entirely for Unix. This isn't a problem with Haskell; it's just that different OSs have different conventions. Perhaps Cabal (or some library) could make it easy for us all to avoid re-inventing this wheel? Simon | -----Original Message----- | From: haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of Neil | Mitchell | Sent: 27 May 2007 14:36 | To: Haskell Café | Subject: [Haskell-cafe] Distributing a program with support files | | Hi, | | I'm wanting to release a Haskell program, but am confused how I should | distribute the associated files it needs. On Windows I would use the | functions to find the path of the executable, and find the support | files relative to that - in Haskell (because of Linux) that isn't the | case. | | The basic setup I have is: | | foo.exe - main binary | library.hs - required by the binary | examples\*.hs - a massive tree of examples, which can be used by the binary | | foo.exe also needs to create temporary files relative to library.hs | and the examples. | | Thanks | | Neil | _______________________________________________ | Haskell-Cafe mailing list | Haskell-Cafe@haskell.org | http://www.haskell.org/mailman/listinfo/haskell-cafe