fix build warning with old aeson

This commit is contained in:
Joey Hess 2022-03-07 13:29:24 -04:00
parent dab9078ab7
commit 5b6518d4a3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View 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)