biocad / openapi3

OpenAPI 3.0 data model
BSD 3-Clause "New" or "Revised" License
39 stars 54 forks source link

Fix mtl-2.3 compat #60

Closed ysangkok closed 1 year ago

ysangkok commented 2 years ago

Co-authored-by: @matobet

Cherry-picked from https://github.com/GetShopTV/swagger2/commit/b8048f37671a984005e5fb0f4e4f18b5d51e5d25

Tested on GHC-9.0.2 and GHC-9.2.4, without tests: cabal build -w ghc-9.2.4 --disable-tests --constraint='mtl>=2.3' --constraint='transformers>0.6' --allow-newer=insert-ordered-containers:transformers

Tests currently don't compile due to the use of doctest, which breaks on the GHC dependency, which cabal-install tries to rebuild even though it shouldn't (ghc the library can't be built from hackage, if i understand correctly)

maksbotan commented 1 year ago

Thanks!

I'll make a new release when tests are fixed with 9.4.

ysangkok commented 1 year ago

I'll make a new release when tests are fixed with 9.4.

@maksbotan Would it be possible to make the new release? 9.4 tests have been fixed.

maksbotan commented 1 year ago

Done! https://hackage.haskell.org/package/openapi3-3.2.3