[Haskell-cafe] Abstracting configuration directories

Michael Orlitzky michael at orlitzky.com
Thu Dec 19 03:46:34 UTC 2013


I'm writing a small utility whose only non-portable code involves the
two paths,

  /etc/htsnrc
  $HOME/.htsnrc

These have sort-of analogues under Windows; in .NET they are available
through something like,

  Environment.SpecialFolder.CommonApplicationData
  Environment.SpecialFolder.ApplicationData

I personally will only ever need to run on Linux, but as a matter of
principle I'd like to abstract the paths. Is there a library that can do
this already?


More information about the Haskell-Cafe mailing list