thsutton / aeson-diff

Generate and apply diffs between JSON documents.
BSD 2-Clause "Simplified" License
39 stars 21 forks source link

src/patch.hs: error: Ambiguous occurrence ‘Options’ #39

Closed juhp closed 7 years ago

juhp commented 7 years ago

Not sure what happened, but aeson-diff didn't build for Stackage Nightly:

Building executable 'json-patch' for aeson-diff-1.1.0.3..
[1 of 1] Compiling Main             ( src/patch.hs, dist/build/json-patch/json-patch-tmp/Main.o )

src/patch.hs:31:24: error:
    Ambiguous occurrence ‘Options’
    It could refer to either ‘Data.Aeson.Options’,
                             imported from ‘Data.Aeson’ at src/patch.hs:7:1-27
                             (and originally defined in ‘aeson-1.2.2.0:Data.Aeson.Types.Internal’)
                          or ‘Main.Options’, defined at src/patch.hs:19:1
   |
31 | optionParser :: Parser Options
   |                        ^^^^^^^

src/patch.hs:62:8: error:
    Ambiguous occurrence ‘Options’
    It could refer to either ‘Data.Aeson.Options’,
                             imported from ‘Data.Aeson’ at src/patch.hs:7:1-27
                             (and originally defined in ‘aeson-1.2.2.0:Data.Aeson.Types.Internal’)
                          or ‘Main.Options’, defined at src/patch.hs:19:1
   |
juhp commented 7 years ago

I notice that aeson-diff-1.1.0.3 is deprecated in Hackage though. Dunno if that is related.

juhp commented 7 years ago

Ah, it could well be due to the new minor aeson release.

thsutton commented 7 years ago

Thanks for the report, I'll have a look.

thsutton commented 7 years ago

I have no idea why 1.1.0.3 was deprecated but I've uploaded https://hackage.haskell.org/package/aeson-diff-1.1.0.4 which builds with nightly-2017-09-20.

juhp commented 7 years ago

Thanks!