haskell-servant / servant-swagger-ui

Provide embedded swagger UI for servant and swagger
45 stars 34 forks source link

Allow newer deps (used in Nightly), add 9.0 CI #99

Closed ysangkok closed 2 years ago

ysangkok commented 2 years ago

This is a subset of #97, and it just focuses on allowing some newer libraries, and adding a CI run just for GHC 9.0. I think this should be less controversial since no allow-newers are needed at all. This will also enable compatibility with Stackage Nightly as requested by @domenkozar .

As can be seen from the CI build logs, it does use Aeson 2.0.3.0 to build. But it doesn't use the newer bytestring or text yet. This is because haskell-servant/servant/pull/1526 hasn't been released to Hackage yet. But when it does, everything will continue to work seamlessly as can be demonstrated with this command:

cabal build all --constraint='bytestring>=0.11' --constraint='aeson>=2' --constraint='text>=2' --allow-newer=servant-server:text,servant:text,servant-swagger:bytestring,servant-swagger:text -w ghc-9.0.2
maksbotan commented 2 years ago

Thanks! Revised on Hackage:

Please let me know if there are still some problems with Nightly compat left.