export only the parts of aeson that are used
Rather than hiding things not wanted. This fixes a build warning with aeson-2.2.3 which no longer has a json function.
This commit is contained in:
parent
d026e585be
commit
76362278e9
2 changed files with 2 additions and 6 deletions
|
@ -40,7 +40,7 @@ import Annex.NumCopies
|
|||
import Git.Config (boolConfig)
|
||||
import qualified Git.LsTree as LsTree
|
||||
import Utility.Percentage
|
||||
import Utility.Aeson hiding (json)
|
||||
import Utility.Aeson
|
||||
import Types.Transfer
|
||||
import Logs.Transfer
|
||||
import Types.Key
|
||||
|
|
|
@ -18,11 +18,7 @@ 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 as X (decode, eitherDecode, parseJSON, FromJSON, Object, object, Value(..), (.=), (.:), (.:?))
|
||||
import Data.Aeson hiding (encode)
|
||||
import qualified Data.Aeson
|
||||
#if MIN_VERSION_aeson(2,0,0)
|
||||
|
|
Loading…
Reference in a new issue