]> dgit.raspbian.org Git - git-annex.git/commitdiff
fix build warning with old aeson
authorJoey Hess <joeyh@joeyh.name>
Mon, 7 Mar 2022 17:29:24 +0000 (13:29 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 7 Mar 2022 17:29:24 +0000 (13:29 -0400)
Utility/Aeson.hs

index 462eed1683d88ecdd00d5dd9fe60a665e1a8948b..9e126c82dd84006e3b4bac391bdc9cc3099e9d5e 100644 (file)
@@ -18,7 +18,11 @@ module Utility.Aeson (
        textKey,
 ) where
 
+#if MIN_VERSION_aeson(2,0,0)
 import Data.Aeson as X hiding (ToJSON, toJSON, encode, Key)
+#else
+import Data.Aeson as X hiding (ToJSON, toJSON, encode)
+#endif
 import Data.Aeson hiding (encode)
 import qualified Data.Aeson
 #if MIN_VERSION_aeson(2,0,0)