1825 Commits

Author SHA1 Message Date
Tony Zorman
a17fa0d28b ci: Bump 9.2 and 9.4 minor versions
The stack CI already tests against 9.2.7 instead of 9.2.5 (as the cabal
file said), since we just specify the major version of the LTS resolver,
and lts-20 is up to 9.2.7 by now. Not much has changed since 9.2.5, but
update the haskell-ci workflow regardless. Likewise, 9.4 can be bumped
one minor version, so do that as well.

Related: xmonad/xmonad-contrib@1d84db959c
2023-03-31 07:48:46 +02:00
Tony Zorman
b394435443 ci: Test against GHC 9.6.1
+ Regenerate haskell-ci and adjust relevant patches.
  - Remove haskell-ci-dependabot.patch, as it is no longer necessary.

Related: xmonad/xmonad-contrib@635711e994
2023-03-31 07:46:37 +02:00
a5ob7r
faf5cf7b27 Fix compatibilities with unix 2.8.0.0
The version of unix removes the 3rd Maybe FileMode argument of openFd,
so we need to handle this breaking change using a MIN_VERSION macro. The
argument is integrated with the OpenFileFlags argument and the
integrated value in defaultFileFlags is Nothing, so there's no
difference between the two function calls.
2023-03-28 19:33:14 +02:00
a5ob7r
9d0fd62cb2 Fix compatibilities with mtl 2.3.1
No longer the version of mtl re-exports Control.Monad, Control.Monad.Fix
and Data.Monoid modules, so we need to import them directly instead.
2023-03-28 19:33:07 +02:00
Tony Zorman
386d4e6295
Merge pull request #441 from Equwece/suggest-to-use-ghcup
Suggest GHCup more intensively in INSTALL.md
2023-03-16 13:01:47 +01:00
Equwece
ea295dabcc INSTALL: Suggest to use ghcup more intensively
Closes: https://github.com/xmonad/xmonad/issues/373
2023-03-16 13:01:02 +01:00
Tony Zorman
4b3e5e0d07
Merge pull request #440 from xmonad/dependabot/github_actions/cachix/install-nix-action-20
build(deps): bump cachix/install-nix-action from 19 to 20
2023-03-06 08:02:38 +01:00
dependabot[bot]
4b2107a07a
build(deps): bump cachix/install-nix-action from 19 to 20
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 01:38:12 +00:00
Tony Zorman
3ae5f46052
Merge pull request #439 from xmonad/dependabot/github_actions/cachix/install-nix-action-19
build(deps): bump cachix/install-nix-action from 18 to 19
2023-02-13 07:23:09 +01:00
dependabot[bot]
f734f19c1a
build(deps): bump cachix/install-nix-action from 18 to 19
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 02:11:18 +00:00
Tomas Janousek
391c0fc0c9 TUTORIAL: Update xmobar URL
https://xmobar.org/ is no more.
2023-02-11 14:00:51 +00:00
Tony Zorman
5ecdf7591d
Merge pull request #437 from TheMC47/master
README: update badge URLs
2023-01-06 19:03:24 +01:00
Yecine Megdiche
301428e5df README: update badge URLs
See https://github.com/badges/shields/issues/8671
2023-01-06 13:49:07 +01:00
Tomas Janousek
63f73e18f9 ci: Unpin runner in hlint workflow; bump hlint to 3.5
hlint 3.5 is built against libtinfo6 and works on Ubuntu 22.04 without
needing to install libtinfo5.

Fixes: e6329968ffe8 ("ci: Pin runner in hlint, nix workflows to ubuntu-20.04")
2023-01-02 20:46:56 +01:00
Tomas Janousek
57c3a13125 ci: Cabal install packdeps outside of project dir
Invoking cabal in the project directory with a cabal.project file might
fail on unrelated dependencies missing, see
4f539734be

Doesn't fail in this repo, but let's keep the workflows in sync.
2022-12-03 13:15:30 +00:00
Tomas Janousek
e6329968ff ci: Pin runner in hlint, nix workflows to ubuntu-20.04
Both are now broken with ubuntu-22.04. Nix:

    error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted

hlint:

    /opt/hostedtoolcache/hlint/3.4.1/x64/hlint: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
2022-12-01 12:02:23 +00:00
github-actions
c1670303c0 man: Update 2022-12-01 11:57:12 +00:00
Tomas Janousek
1d1c012cb9 ci: Drop ppa:hvr/ghc
Breaks `apt update` on the ubuntu-22.04 runner, which is what
ubuntu-latest resolves to these days.

Fixes: 3977a7a4e2d4 ("ci: Drop GHC installation via apt")
2022-12-01 11:55:06 +00:00
dependabot[bot]
a19ffb0404 build(deps): bump haskell/actions from 1 to 2
Bumps [haskell/actions](https://github.com/haskell/actions) from 1 to 2.
- [Release notes](https://github.com/haskell/actions/releases)
- [Commits](https://github.com/haskell/actions/compare/v1...v2)
2022-11-27 17:39:20 +00:00
Tomáš Janoušek
5aa70bd88a ci: Configure dependabot to keep GH Actions up to date 2022-11-27 17:39:20 +00:00
Tomas Janousek
2502fd8d55 ci: Bump actions/* to v3 in haskell-ci workflow
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-27 17:38:41 +00:00
Tomas Janousek
d0942e37ad ci: Update to GHC 9.4.3 2022-11-27 17:37:40 +00:00
Tomas Janousek
40f8246080 MAINTAINERS: Add xmonad-docs build step to the release process 2022-11-25 19:32:43 +00:00
Tony Zorman
be8fd7fdc9 X.Core: Simplify DerivingVia instances
Fixes: cd86480ff7ff30eb7685b6281ce3e891497d2661

Co-authored-by: L. S. Leary <LSLeary@users.noreply.github.com>
2022-11-19 11:21:50 +01:00
Tomáš Janoušek
6e35910b62
Merge pull request #430 from slotThe/drop-8.4
Drop support for GHC 8.4
2022-11-19 09:55:42 +00:00
Tony Zorman
2f2d105098 stack: Bump resolver to lts-20.0 2022-11-19 09:50:02 +01:00
Tony Zorman
cd86480ff7 Use DerivingVia for obvious instances
Certain instance definitions are so automatic, they should be derivable.
Starting with GHC 8.6, they are!
2022-11-19 09:50:00 +01:00
Tony Zorman
5c7c28060c ci: Drop support for GHC 8.4
Debian stable is not on 8.6, which was always our guide as to which GHC
versions we want to support.

In particular, this lets us get rid of all the quickcheck-classes
special treatment.

Related: 400730fe3b
2022-11-19 09:29:37 +01:00
Tony Zorman
78719507a9 ci: Update to GHC 9.2.5
+ A new stackage LTS is out with GHC 9.2.5, so test for this.
+ Update the haskell-ci jobs accordingly from 9.2.4.
2022-11-18 19:12:57 +01:00
Tony Zorman
f4d25fcef4
Merge pull request #426 from damhiya/improve-tall
improve Tall
2022-11-10 15:53:40 +01:00
damhiya
314390937c X.Layout: Don't draw zero-area windows in Tall 2022-11-10 15:52:39 +01:00
Tony Zorman
cf4d6f31b1
Merge pull request #428 from a5ob7r/compatible_with_unix_2.8.0
Fix compatibilities with unix 2.8.0.0
2022-11-05 08:13:37 +01:00
a5ob7r
044d9244e5 Fix compatibilities with unix 2.8.0.0
The version of unix removes the 3rd Maybe FileMode argument of openFd,
so we need to handle this breaking change using a MIN_VERSION macro. The
argument is integrated with the OpenFileFlags argument and the
integrated value in defaultFileFlags is Nothing, so there's no
difference between the two function calls.
2022-11-05 12:54:50 +09:00
Tony Zorman
ab99c17a68
Merge pull request #427 from a5ob7r/compatible_with_mtl_2.3
Fix compatibilities with mtl 2.3.1
2022-11-03 08:10:31 +01:00
a5ob7r
d170e99bc5 Fix compatibilities with mtl 2.3.1
No longer the version of mtl re-exports Control.Monad, Control.Monad.Fix
and Data.Monoid modules, so we need to import them directly instead.
2022-11-03 14:39:28 +09:00
Tomáš Janoušek
96452213f4
Merge pull request #425 from xmonad/hlint
CI maintenance (hlint workflow, GHA deprecations, GHC 9.4)
2022-10-31 11:45:21 +00:00
Tomas Janousek
c19eb06807 ci: Fix docs tarball
haskell-ci by default passes --haddock-all to cabal v2-haddock, which
builds docs for all components and the …-docs.tar.gz tarball ends up
containing the docs for the last component, which happens to be tests.
We need the tarball to contain the library docs, for upload to Hackage.

Fixes: 25a4ed69da9c ("ci: Bump haskell-ci")
2022-10-30 23:05:31 +00:00
Tomas Janousek
6d7da8dc25 X.Config: Appease -Werror=type-equality-requires-operators
GHC 9.4 complains:

    The use of ‘~’ without TypeOperators
    will become an error in a future GHC release.
2022-10-30 21:48:40 +00:00
Tomas Janousek
f96b3f0398 ci: Add GHC 9.4 to tested-with matrix (haskell-ci workflow)
(Also bump 9.2 to 9.2.4)
2022-10-30 21:37:37 +00:00
Tomas Janousek
34f257ad6f ci: Bump cachix/install-nix-action to v18
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 21:29:49 +00:00
Tomas Janousek
f94ad61a27 ci: Bump actions/{checkout,cache} to v3
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 21:18:05 +00:00
Tomas Janousek
3977a7a4e2 ci: Drop GHC installation via apt
The apt repo hosting these packages has been unmaintained for quite a
while, and we've excluded ~/.stack/programs from the cache long time
ago, so we can just let stack handle the installation. It's not much
slower than installing via apt, and even if it was, some matrix jobs
need to use the slow path anyway.

Related: 9fce3805fcf2 ("ci: Use system GHC in Stack to not waste GH Actions cache space")
Related: 7d10e470d71d ("ci: Avoid caching GHC")
2022-10-30 20:59:39 +00:00
Tomas Janousek
3cd839f0ac ci: Replace deprecated GHA set-output command
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 20:39:15 +00:00
Tomas Janousek
a9abc4e09c ci: Drop hlint from haskell-ci workflow
As we have a separate hlint workflow now, this is no longer needed.

Related: https://github.com/xmonad/xmonad-contrib/issues/669
Related: 7cee191516
2022-10-30 20:31:04 +00:00
Tomas Janousek
25a4ed69da ci: Bump haskell-ci 2022-10-30 20:31:04 +00:00
Tomas Janousek
262dc4779f ci: Add hlint workflow
The "haskell/actions/hlint-run" GitHub Action produces annotations which
GitHub shows in the code diff, in addition to just failing the workflow
when there are any suggestions. Also, now it runs in parallel to the
other workflows.

Related: https://github.com/xmonad/xmonad-contrib/issues/669
Related: dd26fcc3f1
2022-10-30 20:30:57 +00:00
Tony Zorman
a2259bb309
Merge pull request #421 from slotThe/expose-internals
Expose buildLaunch, sendRestart, and sendReplace
2022-09-18 16:27:14 +02:00
Tony Zorman
3d8238b35d Expose buildLaunch, sendRestart, and sendReplace
+ Move sendRestart and sendRestart to X.Operations, as this seems like a
  better fit.

Closes: https://github.com/xmonad/xmonad/issues/416
2022-09-10 10:27:26 +02:00
Tony Zorman
fd9de8903f TUTORIAL: Add separators for < 0.17.0 instructions
At least one of the instructions spans multiple paragraphs, which makes
it difficult to make out when this kind of interlude ends and the rest
of the text picks back up.  Introducing separators, while slightly
visually jarring, solves this problem.  As such, make sure that these
sections are reasonably far apart and group ones that are close
together.
2022-09-08 19:20:35 +02:00
Tony Zorman
fb1f33258e TUTORIAL: Remove ewmhFullscreen from < 0.17.0 instructions
This is a new function in 0.17.0, despite it being around for a long
time.
2022-09-08 19:20:35 +02:00