Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msgpack-aeson: Couldn't match type: HM.HashMap k1 Value with: Data.Aeson.KeyMap.KeyMap Value #7135

Closed
juhp opened this issue Oct 2, 2023 · 1 comment

Comments

@juhp
Copy link
Contributor

juhp commented Oct 2, 2023

       /var/stackage/work/unpack-dir/unpacked/msgpack-aeson-0.1.0.0-dc25269f014b8d5c1b2f3657c68d8be9f2f75e2862a5cabbf934700a51b38178
/src/Data/MessagePack/Aeson.hs:53:16: error: [GHC-83865]
           • Couldn't match type: HM.HashMap k1 Value
                            with: Data.Aeson.KeyMap.KeyMap Value
             Expected: [(k1, Value)] -> A.Object
               Actual: [(k1, Value)] -> HM.HashMap k1 Value
           • In the first argument of ‘(.)’, namely ‘HM.fromList’
             In the second argument of ‘(.)’, namely ‘HM.fromList . V.toList’
             In the first argument of ‘(<$>)’, namely
               ‘Object . HM.fromList . V.toList’
          |
       53 |     A.Object . HM.fromList . V.toList
          |                ^^^^^^^^^^^
        
       /var/stackage/work/unpack-dir/unpacked/msgpack-aeson-0.1.0.0-dc25269f014b8d5c1b2f3657c68d8be9f2f75e2862a5cabbf934700a51b38178
/src/Data/MessagePack/Aeson.hs:68:84: error: [GHC-83865]
           • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
                            with: HM.HashMap k0 Value
             Expected: HM.HashMap k0 Value
               Actual: A.Object
           • In the first argument of ‘HM.toList’, namely ‘o’
             In the second argument of ‘($)’, namely ‘HM.toList o’
             In the second argument of ‘($)’, namely
               ‘map (toObject *** fromAeson) $ HM.toList o’
          |
       68 |   A.Object o  -> ObjectMap $ V.fromList $ map (toObject *** fromAeson) $ HM.toList o
          |                                                                                    ^
@alaendle
Copy link
Member

alaendle commented Jun 7, 2024

@2mol Do you have plans to fix this? Should we finally drop the package and close this issue? (don't want to put stress on you, I just wanted to know what issue still make sense to track)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants