aboutsummaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Fraser Tweedale <frase@frase.id.au>2014-04-08 19:49:43 +1000
committerGravatar Fraser Tweedale <frase@frase.id.au>2014-04-08 19:49:43 +1000
commitf47646dc36e9e97aa70af88a17c3c56a109ca601 (patch)
tree8006a41e7a03e6c7d905f085971ff034a10a0687 /Annex.hs
parent53d3fa89afbf3239c904f73d5e611e112b5816c6 (diff)
fix build failure with flags -Webapp -Quvi
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Annex.hs b/Annex.hs
index f00276e2f..8233e18b9 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -5,7 +5,7 @@
- Licensed under the GNU GPL version 3 or higher.
-}
-{-# LANGUAGE GeneralizedNewtypeDeriving, PackageImports #-}
+{-# LANGUAGE CPP, GeneralizedNewtypeDeriving, PackageImports #-}
module Annex (
Annex,
@@ -63,7 +63,9 @@ import Types.DesktopNotify
import Types.CleanupActions
import qualified Data.Map as M
import qualified Data.Set as S
+#ifdef WITH_QUVI
import Utility.Quvi (QuviVersion)
+#endif
{- git-annex's monad is a ReaderT around an AnnexState stored in a MVar.
- This allows modifying the state in an exception-safe fashion.
@@ -117,7 +119,9 @@ data AnnexState = AnnexState
, useragent :: Maybe String
, errcounter :: Integer
, unusedkeys :: Maybe (S.Set Key)
+#ifdef WITH_QUVI
, quviversion :: Maybe QuviVersion
+#endif
, existinghooks :: M.Map Git.Hook.Hook Bool
, desktopnotify :: DesktopNotify
}
@@ -160,7 +164,9 @@ newState c r = AnnexState
, useragent = Nothing
, errcounter = 0
, unusedkeys = Nothing
+#ifdef WITH_QUVI
, quviversion = Nothing
+#endif
, existinghooks = M.empty
, desktopnotify = mempty
}