brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
282 stars 105 forks source link

Build error with `aeson-2.0.1.0` and GHC 8.0.2 #171

Closed sjakobi closed 2 years ago

sjakobi commented 3 years ago
src/Network/Google/Data/JSON.hs:67:19: error:
    • Couldn't match type ‘HashMap Text Value’
                     with ‘Data.Aeson.KeyMap.KeyMap Value’
      Expected type: HashMap Text Value -> Parser a
        Actual type: Object -> Parser a
    • In the expression: parseJSON . Object
      In an equation for ‘parseJSONObject’:
          parseJSONObject = parseJSON . Object
cabal: Failed to build gogol-core-0.5.0 (which is required by gogol-0.5.0).
brendanhay commented 3 years ago

Thanks

sjakobi commented 3 years ago

As a Hackage trustee, I have created revisions for gogol-core-0.4.0 and gogol-core-0.5.0 that add upper bounds on aeson:

For the migration to aeson-2, you may find some advice in https://github.com/haskell/aeson/issues/881.

brendanhay commented 2 years ago

Thanks, this is now fixed on main.