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)