From 7dd088c3de960d8e6bba1bb6aa452a3e7a293355 Mon Sep 17 00:00:00 2001 From: Alexander 'ccntrq' Pankoff Date: Thu, 18 Jun 2026 10:07:19 +0200 Subject: Adopt new GHC support policy The README claimed a minimum supported version of GHC 8.4.x, but that no longer matched reality. While fixing the GHC < 9.8 build issues in #781 I checked which versions xmobar actually builds with, and the oldest that succeeds is 9.2: - GHC 8.4/8.6 fail because colour-2.3.6 requires base >= 4.13 (i.e. GHC >= 8.8). - GHC 8.8/8.10/9.0 fail because Xmobar.Plugins.Accordion uses GHC APIs they lack (withFileBlocking, hGetContents'). Rather than add compatibility shims to keep claiming support for versions upstream itself no longer recommends, #784 settled on a simpler, sustainable policy: officially support only the GHC versions upstream marks as `Suitable for use` in the GHC status overview (https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC-Status). At the time of writing that means 9.6 through 9.14. This commit implements that policy: - Bump the lower bound on base to >= 4.18 (GHC 9.6) so the build constraints match the documented support, instead of silently failing on older compilers. - Document the policy and the current 9.6-9.14 range in the README, replacing the stale 8.4.x note. Users who need older GHC versions can continue to use older xmobar releases. --- xmobar.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 5d4dd07..a250d1c 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -201,7 +201,7 @@ library build-depends: aeson >= 1.4.7.1, async, - base >= 4.11.0 && < 4.22, + base >= 4.18.0 && < 4.22, bytestring >= 0.10.8.2, cairo >= 0.13, colour >= 2.3.6, -- cgit v1.2.3