[Haskell-beginners] shared files / environment / portability
Henk-Jan van Tuyl
hjgtuyl at chello.nl
Sat Aug 25 10:08:01 CEST 2012
On Sat, 25 Aug 2012 08:09:04 +0200, Christopher Howard
<christopher.howard at frigidcode.com> wrote:
> I'm coding a resource tracker for a game that loads images, sounds, etc.
> from files, and wondering how the program will know where the files are
> located on the installation system. (With C/C++ programs I usually had
> the build system hardcode the appropriate share/ directory into the
> config.h file.) Assuming I package for cabal distribution, what
> approaches to this problem are available to me?
You can find an example in wxAsteroids[0], look at the main function.
Met vriendelijke groet,
Henk-Jan van Tuyl
[0] http://hackage.haskell.org/package/wxAsteroids
--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
More information about the Beginners
mailing list