summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander 'ccntrq' Pankoff <ccntrq@screenri.de>2026-06-18 10:07:19 +0200
committerAlexander 'ccntrq' Pankoff <ccntrq@screenri.de>2026-06-18 13:56:12 +0200
commit7dd088c3de960d8e6bba1bb6aa452a3e7a293355 (patch)
treedbbb9ffac5dea49580855cc0408ed16f48dac538
parent4d612548dea849a044546214faa6dc604bb33494 (diff)
downloadxmobar-7dd088c3de960d8e6bba1bb6aa452a3e7a293355.tar.gz
xmobar-7dd088c3de960d8e6bba1bb6aa452a3e7a293355.tar.bz2
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.
-rw-r--r--readme.org8
-rw-r--r--xmobar.cabal2
2 files changed, 6 insertions, 4 deletions
diff --git a/readme.org b/readme.org
index fb2260a..087345d 100644
--- a/readme.org
+++ b/readme.org
@@ -28,6 +28,11 @@ channel, ~#xmobar~, at [[ircs://irc.libera.chat][Libera]].
* Breaking news
+ - Starting with version 0.51, we introduced a new GHC support policy: xmobar
+ officially supports only the GHC versions that upstream marks as /suitable
+ for use/ in the [[https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC-status][official GHC status overview]].
+ At the time of writing, this means GHC versions from 9.6 to 9.14.
+
- Starting with version 0.45, we use cairo/pango as our drawing engine
(instead of plain X11/Xft). From a user's point of view, that change
should be mostly transparent, except for the facts that it's allowed
@@ -92,9 +97,6 @@ channel, ~#xmobar~, at [[ircs://irc.libera.chat][Libera]].
cabal install xmobar -fall_extensions
#+end_src
- Starting with version 0.35.1, xmobar requires at least GHC version
- 8.4.x. to build. See [[https://codeberg.org/xmobar/xmobar/issues/461][this issue]] for more information.
-
See [[https://codeberg.org/xmobar/xmobar/src/branch/master/doc/compiling.org#optional-features][here]] for a list of optional compilation flags that will enable some
optional plugins.
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,