snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Build failure with aeson-2.2 #236

Closed andreasabel closed 10 months ago

andreasabel commented 1 year ago

Starting with aeson-2.2, the some parsing functionality has been moved to attoparsec-aeson, so this package has to be added to the dependencies.

Just bumping the aeson upper bound leads to the following build failure:

[25 of 27] Compiling Snap.Snaplet.Auth.Backends.JsonFile ( src/Snap/Snaplet/Auth/Backends/JsonFile.hs, dist/build/Snap/Snaplet/Auth/Backends/JsonFile.o, dist/build/Snap/Snaplet/Auth/Backends/JsonFile.dyn_o )

src/Snap/Snaplet/Auth/Backends/JsonFile.hs:147:27: error: [GHC-88464]
    Variable not in scope: json :: Atto.Parser Value
    |
147 |       case Atto.parseOnly json d of
    |                           ^^^^

aeson-2.2 will be needed for building with GHC 9.8.

cydparser commented 10 months ago

Resolved #237 Released in v1.1.3.3.