bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Update to Aeson 2.x.x #292

Closed PierreR closed 11 months ago

PierreR commented 2 years ago

It is getting harder to compile language-puppet with aeson 1.x.x with newer version of ghc. Newer version of hruby are also using aeson 2.x.x, same for servant, ...

Would it be possible to update aeson to 2.x.x for language-puppet.

This is the kind of error I have and I don't really see how to fix it:

src/XPrelude/Extra.hs:158:22: error:
    • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
                     with: HashMap Text Value
      Expected: HashMap Text Value
        Actual: aeson-2.0.3.0:Data.Aeson.Types.Internal.Object
    • In the third argument of ‘HM.alterF’, namely ‘o’
      In the second argument of ‘fmap’, namely
        ‘(HM.alterF (traverse f) k o)’
      In the expression: fmap Object (HM.alterF (traverse f) k o)
    |
158 |         fmap Object (HM.alterF (traverse f) k o)

Thanks.

PierreR commented 1 year ago

@bartavelle would it be possible to make language-puppet works with hruby 0.4 that uses aeson >=2

PierreR commented 1 year ago

For some reasons, I can't build hruby 0.3 anymore. Would love to update to hruby 0.4 (not hruby 0.5 because I can't build it either).

bartavelle commented 11 months ago

I updated the dependencies!