Could not load modules after recent update

Hi, I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad. Here is an example of an error: xmonad.hs:3:1: error: Could not load module ‘XMonad.Actions.CycleWS’ It is a member of the package ‘xmonad-contrib-0.18.1-Hn3tyQ1hgcfBs6gP5hIKJ’ which is unusable due to missing dependencies: random-1.2.1.2-4MvNAJNQIvxGHtrKNblxG1 Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 3 | import XMonad.Actions.CycleWS | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The full log is here: https://pastebin.com/KkFQQSwU It seems that xmonad-contrib is missing the "random" library. I've tried reinstalling xmonad, xmonad-contrib, haskell-random, and any other library I can think of. However, it does not seem to improve the situation. Is there anything I can do to debug this further? Here are some of my installed package versions: xmonad 0.18.0-20 xmonad-contrib 0.18.1-5 haskell-random 1.2.1.2-16 Thank you kindly -- There are 10 types of people, those who know binary and those who don't.

On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs. System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that. Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably. So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV) -- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E

For what it's worth, the Arch Wiki warns about this (
https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_librari...)
and gives solutions. The way Arch manages its Haskell packages causes
problems like this.
On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko
On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs.
System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that.
Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably.
So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV)
-- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com

I've tried some of the suggested solutions in the arch linux wiki, but they
do not seem to work.
I built everything from scratch using stack and seems to be back to
working. Thank you for the suggestion.
I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags
respectively. How and how often do you upgrade your installation?
On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery
For what it's worth, the Arch Wiki warns about this ( https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_librari...) and gives solutions. The way Arch manages its Haskell packages causes problems like this.
On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko
wrote: On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs.
System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that.
Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably.
So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV)
-- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
*Eyal Erez <**oneself@gmail.com*

I upgrade weekly, but I'm a dev so I'm expected to keep on top of `master`.
On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez
I've tried some of the suggested solutions in the arch linux wiki, but they do not seem to work.
I built everything from scratch using stack and seems to be back to working. Thank you for the suggestion.
I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags respectively. How and how often do you upgrade your installation?
On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery
wrote: For what it's worth, the Arch Wiki warns about this ( https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_librari...) and gives solutions. The way Arch manages its Haskell packages causes problems like this.
On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko
wrote: On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs.
System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that.
Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably.
So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV)
-- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- *Eyal Erez <**oneself@gmail.com*
*>* There are 10 types of people, those who know binary and those who don't.
-- brandon s allbery kf8nh allbery.b@gmail.com

Got it.
And what do you do to fully rebuild? git pull [...]; stack upgrade; stack
install?
On Tue, Oct 22, 2024 at 6:13 PM Brandon Allbery
I upgrade weekly, but I'm a dev so I'm expected to keep on top of `master`.
On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez
wrote: I've tried some of the suggested solutions in the arch linux wiki, but they do not seem to work.
I built everything from scratch using stack and seems to be back to working. Thank you for the suggestion.
I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags respectively. How and how often do you upgrade your installation?
On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery
wrote: For what it's worth, the Arch Wiki warns about this ( https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_librari...) and gives solutions. The way Arch manages its Haskell packages causes problems like this.
On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko
wrote: On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs.
System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that.
Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably.
So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV)
-- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- *Eyal Erez <**oneself@gmail.com*
*>* There are 10 types of people, those who know binary and those who don't.
-- brandon s allbery kf8nh allbery.b@gmail.com
--
*Eyal Erez <**oneself@gmail.com*

I use cabal, not stack. I have an upgrade script but it basically builds
xmonad exe, X11 lib, xmonad lib, xmonad-contrib lib, then my config.
https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/update.sh
On Sat, Oct 26, 2024 at 10:35 AM Eyal Erez
Got it.
And what do you do to fully rebuild? git pull [...]; stack upgrade; stack install?
On Tue, Oct 22, 2024 at 6:13 PM Brandon Allbery
wrote: I upgrade weekly, but I'm a dev so I'm expected to keep on top of `master`.
On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez
wrote: I've tried some of the suggested solutions in the arch linux wiki, but they do not seem to work.
I built everything from scratch using stack and seems to be back to working. Thank you for the suggestion.
I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags respectively. How and how often do you upgrade your installation?
On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery
wrote: For what it's worth, the Arch Wiki warns about this ( https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_librari...) and gives solutions. The way Arch manages its Haskell packages causes problems like this.
On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko
wrote: On 2024-10-20 19:46, Eyal Erez wrote:
Hi,
I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad.
Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs.
System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that.
Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably.
So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV)
-- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- *Eyal Erez <**oneself@gmail.com*
*>* There are 10 types of people, those who know binary and those who don't.
-- brandon s allbery kf8nh allbery.b@gmail.com
-- *Eyal Erez <**oneself@gmail.com*
*>* There are 10 types of people, those who know binary and those who don't.
-- brandon s allbery kf8nh allbery.b@gmail.com
participants (3)
-
Brandon Allbery
-
Eyal Erez
-
Platon Pronko