aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-04-02 21:54:57 +0900
committerSean Whitton <spwhitton@spwhitton.name>2015-04-02 21:54:57 +0900
commit6d7a22eaa9dbbf27e2a6790e3866b747d0d160d4 (patch)
tree69bccbcb48f19ec712cfe41b5d918a86d02301c8
parentbbbf74a5604d62e0be8af85cdc2bff217daf628a (diff)
downloadsrem-6d7a22eaa9dbbf27e2a6790e3866b747d0d160d4.tar.gz
TODO
-rw-r--r--src/Control/SremConfig.hs2
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"