From 5b6518d4a300698a4af918bb6ea910046a55cfc8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Mar 2022 13:29:24 -0400 Subject: [PATCH] fix build warning with old aeson --- Utility/Aeson.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utility/Aeson.hs b/Utility/Aeson.hs index 462eed1683..9e126c82dd 100644 --- a/Utility/Aeson.hs +++ b/Utility/Aeson.hs @@ -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)