summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Plugins/Date.hs5
-rw-r--r--xmobar.cabal3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Plugins/Date.hs b/src/Plugins/Date.hs
index a263536..6cbef7e 100644
--- a/src/Plugins/Date.hs
+++ b/src/Plugins/Date.hs
@@ -16,11 +16,16 @@
--
-----------------------------------------------------------------------------
+{-# LANGUAGE CPP #-}
+
module Plugins.Date (Date(..)) where
import Plugins
+#ifdef GHC783
import System.Locale
+#endif
+
import Control.Monad (liftM)
import Data.Time
diff --git a/xmobar.cabal b/xmobar.cabal
index f63ed3b..05d19f5 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -127,6 +127,9 @@ executable xmobar
if impl (ghc < 7)
cpp-options: -DGHC6
+ if impl (ghc < 7.8.4)
+ cpp-options: -DGHC783
+
if flag(with_xft) || flag(all_extensions)
build-depends: utf8-string == 0.3.*, X11-xft >= 0.2 && < 0.4
other-modules: MinXft