summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-10-06 21:26:17 +0100
committerjao <jao@gnu.org>2018-10-06 21:26:17 +0100
commit0d5953ddab66dfcc81b970beb0dd4b01c54ce34f (patch)
tree621193ab52cca6a6779f69182c578503e7ad3695
parentee1bd952f5ad769091f699dfab7def6318282c32 (diff)
downloadxmobar-0d5953ddab66dfcc81b970beb0dd4b01c54ce34f.tar.gz
xmobar-0d5953ddab66dfcc81b970beb0dd4b01c54ce34f.tar.bz2
Fix: only use Mail, MBox and DateZone if compilation requested
-rw-r--r--src/Config.hs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Config.hs b/src/Config.hs
index c9ce1a8..43ddf51 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE TypeOperators, CPP #-}
-----------------------------------------------------------------------------
-- |
@@ -38,10 +38,14 @@ import Plugins.EWMH
import Plugins.Kbd
import Plugins.Locks
+#ifdef INOTIFY
import Plugins.Mail
import Plugins.MBox
+#endif
+#ifdef DATEZONE
import Plugins.DateZone
+#endif
-- $config
-- Configuration data type and default configuration
@@ -155,6 +159,12 @@ infixr :*:
-- this function's type signature.
runnableTypes :: Command :*: Monitors :*: Date :*: PipeReader :*:
BufferedPipeReader :*: CommandReader :*: StdinReader :*:
- XMonadLog :*: EWMH :*: Kbd :*: Locks :*: Mail :*: MBox :*:
- DateZone :*: MarqueePipeReader :*: ()
+ XMonadLog :*: EWMH :*: Kbd :*: Locks :*:
+#ifdef INOTIFY
+ Mail :*: MBox :*:
+#endif
+#ifdef DATEZONE
+ DateZone :*:
+#endif
+ MarqueePipeReader :*: ()
runnableTypes = undefined