You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 5 of 33] Compiling Network.AWS.Data.JSON ( src/Network/AWS/Data/JSON.hs, /codetmp/amazonka-core-1.6.1/dist-newstyle/build/x86_64-linux/ghc-8.6.5/amazonka-core-1.6.1/build/Network/AWS/Data/JSON.o )
src/Network/AWS/Data/JSON.hs:54:23: error:
• Couldn't match type ‘Data.Aeson.KeyMap.KeyMap Value’
with ‘Map.HashMap Text Value’
Expected type: Map.HashMap Text Value
Actual type: Object
• In the second argument of ‘Map.lookup’, namely ‘o’
In the expression: Map.lookup k o
In the expression:
case Map.lookup k o of
Nothing -> Left $ "key " ++ show k ++ " not present"
Just v -> parseEither parseJSON v
|
54 | case Map.lookup k o of
| ^
src/Network/AWS/Data/JSON.hs:60:23: error:
• Couldn't match type ‘Data.Aeson.KeyMap.KeyMap Value’
with ‘Map.HashMap Text Value’
Expected type: Map.HashMap Text Value
Actual type: Object
• In the second argument of ‘Map.lookup’, namely ‘o’
In the expression: Map.lookup k o
In the expression:
case Map.lookup k o of
Nothing -> Right Nothing
Just v -> parseEither parseJSON v
|
60 | case Map.lookup k o of
|
This and other similar issues should be caught when we do a check for outdated packages #660 .
Since amazonka-core doesn't exist any more, the metadata revisions are the only fix that makes sense. I'll make a note to check that amazonka itself works with aeson-2.
EDIT: I made revision for amazonka-core-1.6.1 and 1.6.0 (e.g. https://hackage.haskell.org/package/amazonka-core-1.6.1/revisions/). I'll check older next.
The text was updated successfully, but these errors were encountered: