From d7897ee1d085f0afa12286cbd7bbf2a382f0b3a5 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Fri, 6 Oct 2023 17:26:20 +0300 Subject: [PATCH] Bump bounds and create a cabal freeze file By using Cabal, I avoid disturbing the existing Stack-based build plans. Tested with ghc-9.2.8 on NixOS-23.05 --- cabal.project | 5 + cabal.project.freeze | 125 ++++++++++++++++++++ stripe-core/stripe-core.cabal | 6 +- stripe-http-client/stripe-http-client.cabal | 4 +- stripe-tests/stripe-tests.cabal | 4 +- 5 files changed, 137 insertions(+), 7 deletions(-) create mode 100644 cabal.project create mode 100644 cabal.project.freeze diff --git a/cabal.project b/cabal.project new file mode 100644 index 0000000..c8c2d55 --- /dev/null +++ b/cabal.project @@ -0,0 +1,5 @@ +packages: + stripe-core + stripe-haskell + stripe-http-client + stripe-tests diff --git a/cabal.project.freeze b/cabal.project.freeze new file mode 100644 index 0000000..a719af9 --- /dev/null +++ b/cabal.project.freeze @@ -0,0 +1,125 @@ +active-repositories: hackage.haskell.org:merge +constraints: any.HUnit ==1.6.2.0, + any.OneTuple ==0.3.1, + any.QuickCheck ==2.14.2, + any.StateVar ==1.2.2, + any.aeson ==2.0.3.0, + aeson -cffi +ordered-keymap, + any.ansi-terminal ==0.11.4, + any.appar ==0.1.8, + any.array ==0.5.4.0, + any.asn1-encoding ==0.9.6, + any.asn1-parse ==0.9.5, + any.asn1-types ==0.3.4, + any.assoc ==1.0.2, + any.async ==2.2.4, + any.attoparsec ==0.14.4, + any.base ==4.16.4.0, + any.base-compat ==0.12.3, + any.base-compat-batteries ==0.12.3, + any.base-orphans ==0.8.8.2, + any.base64-bytestring ==1.2.1.0, + any.basement ==0.0.15, + any.bifunctors ==5.5.15, + any.binary ==0.8.9.0, + any.blaze-builder ==0.4.2.2, + any.byteorder ==1.0.4, + any.bytestring ==0.11.4.0, + any.call-stack ==0.4.0, + any.case-insensitive ==1.2.1.0, + any.cereal ==0.5.8.3, + any.clock ==0.8.3, + any.colour ==2.3.6, + any.comonad ==5.0.8, + any.containers ==0.6.5.1, + any.contravariant ==1.5.5, + any.cookie ==0.4.6, + any.crypton ==0.33, + crypton -check_alignment +integer-gmp -old_toolchain_inliner +support_aesni +support_deepseq +support_pclmuldq +support_rdrand -support_sse +use_target_attributes, + any.crypton-connection ==0.3.1, + any.crypton-x509 ==1.7.6, + any.crypton-x509-store ==1.6.9, + any.crypton-x509-system ==1.6.7, + any.crypton-x509-validation ==1.6.12, + any.data-array-byte ==0.1.0.1, + any.data-default-class ==0.1.2.0, + any.data-fix ==0.3.2, + any.deepseq ==1.4.6.1, + any.directory ==1.3.7.1, + any.distributive ==0.6.2.1, + any.dlist ==1.0, + any.exceptions ==0.10.4, + any.filepath ==1.4.2.2, + any.free ==5.1.10, + any.ghc-bignum ==1.2, + any.ghc-boot-th ==9.2.8, + any.ghc-prim ==0.8.0, + any.hashable ==1.4.2.0, + any.hourglass ==0.2.12, + any.hsc2hs ==0.68.10, + hsc2hs -in-ghc-tree, + any.hspec ==2.7.10, + any.hspec-core ==2.7.10, + any.hspec-discover ==2.7.10, + any.hspec-expectations ==0.8.2, + any.http-client ==0.7.14, + http-client +network-uri, + any.http-client-tls ==0.3.6.3, + any.http-types ==0.12.3, + any.indexed-traversable ==0.1.2.1, + any.indexed-traversable-instances ==0.1.1.2, + any.integer-gmp ==1.1, + any.integer-logarithms ==1.0.3.1, + any.iproute ==1.7.12, + any.memory ==0.17.0, + any.mime-types ==0.1.0.9, + any.mtl ==2.2.2, + any.network ==3.1.4.0, + network -devel, + any.network-uri ==2.6.4.2, + any.old-locale ==1.0.0.7, + any.old-time ==1.1.0.3, + any.parsec ==3.1.15.0, + any.pem ==0.2.4, + any.pretty ==1.1.3.6, + any.primitive ==0.7.3.0, + any.process ==1.6.18.0, + any.profunctors ==5.6.2, + any.quickcheck-io ==0.2.0, + any.random ==1.2.1.1, + any.rts ==1.0.2, + any.scientific ==0.3.7.0, + any.semialign ==1.2.0.1, + any.semigroupoids ==5.3.7, + any.setenv ==0.1.1.3, + any.socks ==0.6.1, + any.splitmix ==0.1.0.4, + any.stm ==2.5.0.2, + any.streaming-commons ==0.2.2.6, + streaming-commons -use-bytestring-builder, + any.strict ==0.4.0.1, + stripe-haskell -http-streams, + any.tagged ==0.8.6.1, + any.template-haskell ==2.18.0.0, + any.text ==1.2.5.0, + any.text-short ==0.1.5, + any.tf-random ==0.5, + any.th-abstraction ==0.4.5.0, + any.th-compat ==0.1.4, + any.these ==1.1.1.1, + any.time ==1.10, + any.time-compat ==1.9.6.1, + time-compat -old-locale, + any.tls ==1.9.0, + tls +compat -hans +network, + any.transformers ==0.5.6.2, + any.transformers-base ==0.4.6, + any.transformers-compat ==0.7.2, + any.unix ==2.7.3, + any.unix-time ==0.4.11, + any.unordered-containers ==0.2.19.1, + any.uuid-types ==1.0.5, + any.vector ==0.12.3.1, + any.witherable ==0.4.2, + any.zlib ==0.6.3.0 +index-state: hackage.haskell.org 2023-10-05T12:52:47Z diff --git a/stripe-core/stripe-core.cabal b/stripe-core/stripe-core.cabal index 32f6d34..7d80a10 100644 --- a/stripe-core/stripe-core.cabal +++ b/stripe-core/stripe-core.cabal @@ -20,12 +20,12 @@ Description: library hs-source-dirs: src - build-depends: aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 + build-depends: aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 || >= 2.0 && < 2.1 , base >= 4.7 && < 5 - , bytestring >= 0.10 && < 0.11 + , bytestring >= 0.10 && < 0.12 , mtl >= 2.1.2 && < 2.3 , text >= 1.0 && < 1.3 - , time >= 1.4 && < 1.11 + , time >= 1.4 && < 1.12 , transformers >= 0.3 && < 0.6 , unordered-containers >= 0.2.5 && < 0.3 diff --git a/stripe-http-client/stripe-http-client.cabal b/stripe-http-client/stripe-http-client.cabal index 68f4dc1..96b7e60 100644 --- a/stripe-http-client/stripe-http-client.cabal +++ b/stripe-http-client/stripe-http-client.cabal @@ -25,9 +25,9 @@ library other-extensions: OverloadedStrings RecordWildCards build-depends: base >= 4.7 && < 5 - , bytestring >= 0.10 && < 0.11 + , bytestring >= 0.10 && < 0.12 , text >= 1.1 && < 1.3 - , aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 + , aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 || >= 2.0 && < 2.1 , http-client , http-client-tls , http-types diff --git a/stripe-tests/stripe-tests.cabal b/stripe-tests/stripe-tests.cabal index 9c503b6..e62ff0a 100644 --- a/stripe-tests/stripe-tests.cabal +++ b/stripe-tests/stripe-tests.cabal @@ -22,9 +22,9 @@ Description: library hs-source-dirs: tests - build-depends: aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 + build-depends: aeson >= 0.8 && < 0.10 || >= 0.11 && < 1.6 || >= 2.0 && < 2.1 , base >= 4.7 && < 5 - , bytestring >= 0.10 && < 0.11 + , bytestring >= 0.10 && < 0.12 , free >= 4.10 && < 6 , mtl >= 2.1.2 && < 2.3 , random >= 1.1 && < 1.3