From 0d5953ddab66dfcc81b970beb0dd4b01c54ce34f Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 6 Oct 2018 21:26:17 +0100 Subject: Fix: only use Mail, MBox and DateZone if compilation requested --- src/Config.hs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3