summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/X11/Loop.hs
diff options
context:
space:
mode:
authorAlexander 'ccntrq' Pankoff <ccntrq@screenri.de>2026-06-02 14:08:45 +0200
committerAlexander 'ccntrq' Pankoff <ccntrq@screenri.de>2026-06-16 21:47:23 +0200
commit4d612548dea849a044546214faa6dc604bb33494 (patch)
tree84c43c33759b9233c44f16000b94c018c813b3c6 /src/Xmobar/X11/Loop.hs
parentc294fe3149776f09c497e4d12f5d3eb125b30ca4 (diff)
downloadxmobar-4d612548dea849a044546214faa6dc604bb33494.tar.gz
xmobar-4d612548dea849a044546214faa6dc604bb33494.tar.bz2
Fix PacmanUpdates parse error on GHC < 9.8 - fix #766
Export-list DEPRECATED pragmas were only added in GHC 9.8 (proposal `#134`[1]). On older compilers the pragma inside the export list is a parse error ("parse error on input '{-# DEPRECATED'"), breaking the build. Guard the pragma with CPP so it is only emitted on GHC >= 9.8. The export-list form is kept deliberately: it deprecates only the `pattern PacmanUpdates` export, leaving the equally-named `PacmanUpdates` type untouched, so downstream users referencing the type get no spurious deprecation warnings. On older GHC the compile-time warning is simply absent; the runtime "deprecated plugin" note still informs users. [1]: https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0134-deprecating-exports-proposal.rst
Diffstat (limited to 'src/Xmobar/X11/Loop.hs')
0 files changed, 0 insertions, 0 deletions