zellige / hs-geojson

GeoJSON parsing library [Haskell]
BSD 3-Clause "New" or "Revised" License
23 stars 13 forks source link

Build error with aeson-2 #23

Closed sjakobi closed 2 years ago

sjakobi commented 2 years ago

I'm getting this error when building geojson with aeson-2.0.1.0:

src/Data/Geospatial/Internal/CRS.hs:84:14: error:
    • Couldn't match expected type ‘Data.Aeson.Key.Key’
                  with actual type ‘Text’
    • In the second argument of ‘(.:)’, namely ‘name’
      In a stmt of a 'do' block: props .: name
      In the expression:
        do props <- obj .: "properties"
           props .: name
   |
84 |     props .: name
   |              ^^^^
cabal: Failed to build geojson-4.0.2
sjakobi commented 2 years ago

As a Hackage trustee, I have created a few Hackage revisions for geojson that should prevent users from running into the error above. See e.g. https://hackage.haskell.org/package/geojson-4.0.2/revisions/.

newmana commented 2 years ago

Fixed with geojson 4.0.3 release.