[Haskell-cafe] Abstracting configuration directories

Michael Orlitzky michael at orlitzky.com
Fri Dec 20 19:17:04 UTC 2013


On 12/20/2013 12:51 PM, Joeri van Eekelen wrote:
> I think the "right" way to accomplish this is through the Paths_pkg
> module generated by Cabal:
> 
> http://www.haskell.org/cabal/users-guide/developing-packages.html#accessing-data-files-from-package-code
> 

This is more for when you want to install a data file and don't care
where, but you need to be able to find it later. My configuration file
should wind up in a fixed location (e.g. /etc on Linux); I'm just not
sure where that is on Windows, and I don't want to have to hard-code it
in case it changes in Windows 3000.

Thanks for the suggestion though.



More information about the Haskell-Cafe mailing list