commercialhaskell / stackage

Stable Haskell package sets: vetted consistent packages from Hackage
https://www.stackage.org/
MIT License
525 stars 797 forks source link

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

Closed juhp closed 2 days ago

juhp commented 9 months ago
       /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 commented 1 month ago

@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)