psibi / fb

BSD 3-Clause "New" or "Revised" License
18 stars 5 forks source link

build fails with aeson-2.0 #13

Closed juhp closed 2 years ago

juhp commented 2 years ago
fb                        > /tmp/stack-82cf7deac0d9e16b/fb-2.1.1/src/Facebook/FQL.hs:69:68: error:
fb                        >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap A.Value
fb                        >                      with: HMS.HashMap k0 A.Value
fb                        >       Expected: HMS.HashMap k0 A.Value
fb                        >         Actual: A.Object
fb                        >     • In the first argument of ‘HMS.elems’, namely ‘o’
fb                        >       In the second argument of ‘mapM’, namely ‘(HMS.elems o)’
fb                        >       In the second argument of ‘(<$>)’, namely
fb                        >         ‘mapM A.parseJSON (HMS.elems o)’
fb                        >    |
fb                        > 69 |   parseJSON (A.Object o) = FQLList <$> mapM A.parseJSON (HMS.elems o)
fb                        >    |                                                                    ^