[Haskell-beginners] shared files / environment / portability
Chaddaï Fouché
chaddai.fouche at gmail.com
Sat Aug 25 08:45:01 CEST 2012
On Sat, Aug 25, 2012 at 8:09 AM, 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?
>
> (P.S. Thanks for the answer to the previous question about associative
> arrays.)
>
Cabal includes a slightly limited system for that :
http://www.haskell.org/ghc/docs/7.0.2/html/Cabal/authors.html#paths-module
http://neilmitchell.blogspot.fr/2008/02/adding-data-files-using-cabal.html
--
Jedaï
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120825/00df3136/attachment.htm>
More information about the Beginners
mailing list