summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2017-04-29 03:41:05 +0200
committerjao <jao@gnu.org>2017-04-29 03:41:05 +0200
commit308bd1b83e07d2418ee512ee1fcaeda609907669 (patch)
tree282dc0f4b4a1ad9b9ece17c36784df25901c7b4c /src/Plugins
parent2939cee44cf2ab18e2627754d19bcd8b6c9e96fb (diff)
downloadxmobar-308bd1b83e07d2418ee512ee1fcaeda609907669.tar.gz
xmobar-308bd1b83e07d2418ee512ee1fcaeda609907669.tar.bz2
CPP for GHC 8.0
Diffstat (limited to 'src/Plugins')
-rw-r--r--src/Plugins/Monitors/CoreCommon.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/CoreCommon.hs b/src/Plugins/Monitors/CoreCommon.hs
index 4ded88a..5b6d89a 100644
--- a/src/Plugins/Monitors/CoreCommon.hs
+++ b/src/Plugins/Monitors/CoreCommon.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE PatternGuards #-}
+{-# LANGUAGE CPP, PatternGuards #-}
-----------------------------------------------------------------------------
-- |
@@ -16,6 +16,10 @@
module Plugins.Monitors.CoreCommon where
+#ifndef GHC8
+import Control.Applicative
+#endif
+
import Data.Char hiding (Space)
import Data.Function
import Data.List