akshaymankar / jsonpath-hs

Haskell implementation of JSONPath
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

build fails with aeson-2.0 #15

Closed juhp closed 2 years ago

juhp commented 2 years ago
jsonpath                       > /tmp/stack-79774e70d76c5c05/jsonpath-0.2.0.0/src/Data/JSONPath/Execute.hs:31:32: error:
jsonpath                       >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
jsonpath                       >                      with: HashMap Data.Text.Internal.Text Value
jsonpath                       >       Expected: HashMap Data.Text.Internal.Text Value
jsonpath                       >         Actual: Object
jsonpath                       >     • In the second argument of ‘Map.lookup’, namely ‘o’
jsonpath                       >       In the first argument of ‘(&)’, namely ‘Map.lookup key o’
jsonpath                       >       In the expression:
jsonpath                       >         Map.lookup key o & (maybeToResult (notFoundErr key o))
jsonpath                       >    |
jsonpath                       > 31 |     Object o -> Map.lookup key o
jsonpath                       >    |                                ^
jsonpath                       > 
jsonpath                       > /tmp/stack-79774e70d76c5c05/jsonpath-0.2.0.0/src/Data/JSONPath/Execute.hs:36:40: error:
jsonpath                       >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
jsonpath                       >                      with: HashMap k0 Value
jsonpath                       >       Expected: HashMap k0 Value
jsonpath                       >         Actual: Object
jsonpath                       >     • In the first argument of ‘elems’, namely ‘o’
jsonpath                       >       In the second argument of ‘($)’, namely ‘elems o’
jsonpath                       >       In the expression: ResultList $ elems o
jsonpath                       >    |
jsonpath                       > 36 |     Object o -> ResultList $ Map.elems o
jsonpath                       >    |                                        ^
jsonpath                       > 
jsonpath                       > /tmp/stack-79774e70d76c5c05/jsonpath-0.2.0.0/src/Data/JSONPath/Execute.hs:66:43: error:
jsonpath                       >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
jsonpath                       >                      with: HashMap k1 Value
jsonpath                       >       Expected: HashMap k1 Value
jsonpath                       >         Actual: Object
jsonpath                       >     • In the second argument of ‘Map.map’, namely ‘o’
jsonpath                       >       In the second argument of ‘($)’, namely ‘Map.map f o’
jsonpath                       >       In the expression: elems $ Map.map f o
jsonpath                       >    |
jsonpath                       > 66 | valMap f v@(Object o) = elems $ Map.map f o
jsonpath                       >    |                                           ^