Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC 9.2 support #227

Closed
8 tasks
swamp-agr opened this issue Nov 5, 2021 · 2 comments · Fixed by #231
Closed
8 tasks

GHC 9.2 support #227

swamp-agr opened this issue Nov 5, 2021 · 2 comments · Fixed by #231

Comments

@swamp-agr
Copy link
Collaborator

swamp-agr commented Nov 5, 2021

TODO:

  • optics-th-0.4 depends on template-haskell.
  • lens-5.0.1 depends on template-haskell.
  • insert-ordered-containers-0.2.5 depends on base.
  • http-media-0.8.0.0 depends on base.
  • generics-sop-0.5.1.1 depends on base ghc-prim, temlate-haskell.
  • sop-core-0.5.0.1 depends on base.
  • aeson-2.0.1.0 depends on ghc-prim, template-haskell.
  • cabal-doctest-1.0.8 depends on base, Cabal (subject of deprecation?).
@ysangkok
Copy link
Contributor

ysangkok commented Feb 2, 2022

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants