Closed Miezhiko closed 8 months ago
I directed @Miezhiko to convert Aeson.KeyValue kv
to Aeson.KeyValue e kv
in the functional programming discord. That seemed to fix this error.
this change will break 2.1 compat most likely, issue is actual on whether it's worthwhile to use CPP to maintain compatibility or whether to just drop support for aeson 2.1
not sure how to fix this code after aeson 2.2 changes, current cabal limits <2.2 but for better compatibility with other things I want it to build with aeson 2.2.1 so I need little help
it gives
• Expecting one more argument to ‘Aeson.KeyValue kv’ Expected a constraint, but ‘Aeson.KeyValue kv’ has kind ‘* -> Constraint’ • In the type signature: toPairs :: Aeson.KeyValue kv => a -> [Maybe kv] In the class declaration for ‘CalamityToJSON'’ | | toPairs :: Aeson.KeyValue kv => a -> [Maybe kv]