<div class="gmail_quote">On Sat, Aug 25, 2012 at 8:09 AM, Christopher Howard <span dir="ltr">&lt;<a href="mailto:christopher.howard@frigidcode.com" target="_blank">christopher.howard@frigidcode.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m coding a resource tracker for a game that loads images, sounds, etc.<br>
from files, and wondering how the program will know where the files are<br>
located on the installation system. (With C/C++ programs I usually had<br>
the build system hardcode the appropriate share/ directory into the<br>
config.h file.) Assuming I package for cabal distribution, what<br>
approaches to this problem are available to me?<br>
<br>
(P.S. Thanks for the answer to the previous question about associative<br>
arrays.)<span class="HOEnZb"></span><br></blockquote><div><br>Cabal includes a slightly limited system for that :<br><a href="http://www.haskell.org/ghc/docs/7.0.2/html/Cabal/authors.html#paths-module">http://www.haskell.org/ghc/docs/7.0.2/html/Cabal/authors.html#paths-module</a><br>
<a href="http://neilmitchell.blogspot.fr/2008/02/adding-data-files-using-cabal.html">http://neilmitchell.blogspot.fr/2008/02/adding-data-files-using-cabal.html</a><br><br>-- <br>Jeda├»<br></div></div>