From 3c1d276ca5a85e5b5cefc5e67fd42542c7768572 Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Tue, 13 Jan 2026 11:12:47 -0700 Subject: [PATCH] Add bounds to `base` in Haskell template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `cabal check` fails if bounds are missing, so this is needed for `validate-template` to succeed on Haskell. If these bounds turn out to be incorrect downstream (for example, after unsupported GHC versions are removed), it will be discovered by CI anyway. Unfortunately, this isn’t enough to get `cabal check` passing. It will also need to have core/src/ created, which requires sellout/flaky#183. --- templates/haskell/core/{{project.name}}.cabal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/haskell/core/{{project.name}}.cabal b/templates/haskell/core/{{project.name}}.cabal index de6abd7..c9ec217 100644 --- a/templates/haskell/core/{{project.name}}.cabal +++ b/templates/haskell/core/{{project.name}}.cabal @@ -65,7 +65,7 @@ custom-setup -- have _some_ upper bound. (Since there’s no direct dependency, it -- doesn’t use PVP bounds.) Cabal >= 3.0 && < 99, - base, + base ^>= {4.8.2, 4.9.0, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.14.0, 4.15.0, 4.16.0, 4.17.0, 4.18.0, 4.19.0, 4.20.0, 4.21.0}, cabal-doctest ^>= {1.0.0}, -- This mimics the GHC2024 extension @@ -121,7 +121,7 @@ common GHC2024 common defaults import: GHC2024 build-depends: - base, + base ^>= {4.8.2, 4.9.0, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.14.0, 4.15.0, 4.16.0, 4.17.0, 4.18.0, 4.19.0, 4.20.0, 4.21.0}, ghc-options: if impl(ghc >= 8.0.1) ghc-options: