summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2015-04-02 00:02:26 +0200
committerEdward Tjörnhammar <ed@cflags.cc>2015-04-02 00:02:26 +0200
commit11a5d22aa5ff9d4139d5986d405a6cb0b94359cc (patch)
tree1252958e65013696653bac027874877603a346f0
parent90e6cd0407313858daef2eb6ecfd5cd04a2a72a8 (diff)
downloadxmobar-11a5d22aa5ff9d4139d5986d405a6cb0b94359cc.tar.gz
xmobar-11a5d22aa5ff9d4139d5986d405a6cb0b94359cc.tar.bz2
De-ambiguify defaultTimeLocale using CPP
-rw-r--r--src/Plugins/Date.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Plugins/Date.hs b/src/Plugins/Date.hs
index a263536..cd688e6 100644
--- a/src/Plugins/Date.hs
+++ b/src/Plugins/Date.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Date
@@ -20,7 +21,9 @@ module Plugins.Date (Date(..)) where
import Plugins
+#if ! MIN_VERSION_time(1,5,0)
import System.Locale
+#endif
import Control.Monad (liftM)
import Data.Time