GetShopTV / swagger2

Swagger 2.0 data model.
http://hackage.haskell.org/package/swagger2
BSD 3-Clause "New" or "Revised" License
74 stars 59 forks source link

GHC 9.2 support #227

Closed swamp-agr closed 2 years ago

swamp-agr commented 2 years ago

TODO:

ysangkok commented 2 years ago

I am not sure what your list of items means, but I applied this patch and it builds:

diff --git a/swagger2.cabal b/swagger2.cabal
index e290c4a..c1c05d8 100644
--- a/swagger2.cabal
+++ b/swagger2.cabal
@@ -59,11 +59,11 @@ library

   -- GHC boot libraries
   build-depends:
-      base             >=4.9       && <4.16
-    , bytestring       >=0.10.8.1  && <0.11
+      base             >=4.9       && <4.17
+    , bytestring       >=0.10.8.1  && <0.12
     , containers       >=0.5.7.1   && <0.7
-    , template-haskell >=2.11.1.0  && <2.18
-    , time             >=1.6.0.1   && <1.10
+    , template-haskell >=2.11.1.0  && <2.19
+    , time             >=1.6.0.1   && <1.14
     , transformers     >=0.5.2.0   && <0.6

   build-depends:
@@ -72,7 +72,7 @@ library

   -- other dependencies
   build-depends:
-      base-compat-batteries     >=0.11.1   && <0.12
+      base-compat-batteries     >=0.11.1   && <0.13
     , aeson                     >=2.0.0.0  && <2.1
     , aeson-pretty              >=0.8.7    && <0.9
     -- cookie 0.4.3 is needed by GHC 7.8 due to time>=1.4 constraint
@@ -81,7 +81,7 @@ library
     , hashable                  >=1.2.7.0  && <1.4
     , http-media                >=0.8.0.0  && <0.9
     , insert-ordered-containers >=0.2.3    && <0.3
-    , lens                      >=4.16.1   && <5.1
+    , lens                      >=4.16.1   && <5.2
     , network                   >=2.6.3.5  && <3.2
     , optics-core               >=0.2      && <0.5
     , optics-th                 >=0.2      && <0.5

But the testsuite fails, looks like problems with doctest.

swamp-agr commented 2 years ago

Released on hackage: https://hackage.haskell.org/package/swagger2-2.8