[Haskell-cafe] Abstracting configuration directories
Henk-Jan van Tuyl
hjgtuyl at chello.nl
Fri Dec 20 11:29:03 UTC 2013
On Thu, 19 Dec 2013 18:15:09 +0100, Michael Orlitzky
<michael at orlitzky.com> wrote:
> On 12/19/2013 01:40 AM, Tim C. Schroeder wrote:
>> I think this is what you're looking for:
>>
>> http://hackage.haskell.org/package/directory-1.2.0.1/docs/System-Directory.html#g:2
>>
>
> getAppUserDataDirectory will give me the user's configuration directory
> (ala $HOME/.htsnrc), but not the global one (whatever I'm supposed to
> use instead of /etc on Windows).
You could use the environment variable AllUsersProfile[0] for this.
The directory package should be extended with a function
getAppGlobalDataDirectory.
Regards,
Henk-Jan van Tuyl
[0] http://environmentvariables.org/AllUsersProfile
--
Folding at home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
More information about the Haskell-Cafe
mailing list