diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-04-02 21:54:57 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2015-04-02 21:54:57 +0900 |
commit | 6d7a22eaa9dbbf27e2a6790e3866b747d0d160d4 (patch) | |
tree | 69bccbcb48f19ec712cfe41b5d918a86d02301c8 | |
parent | bbbf74a5604d62e0be8af85cdc2bff217daf628a (diff) | |
download | srem-6d7a22eaa9dbbf27e2a6790e3866b747d0d160d4.tar.gz |
TODO
-rw-r--r-- | src/Control/SremConfig.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Control/SremConfig.hs b/src/Control/SremConfig.hs index ec1dc77..18ff0da 100644 --- a/src/Control/SremConfig.hs +++ b/src/Control/SremConfig.hs @@ -28,6 +28,8 @@ module Control.SremConfig ( getCacheDirectory import System.Directory (getHomeDirectory) import System.FilePath ((</>)) +-- TODO: check $XDG_CACHE or whatever environment variable before defaulting to ~/.cache + getCacheDirectory :: IO FilePath getCacheDirectory = getHomeDirectory >>= \h -> return $ h </> ".cache" </> "srem" |