You are not logged in.

#1 2023-10-01 02:25:51

Anapal
Member
From: Philippines
Registered: 2022-09-17
Posts: 7

[SOLVED] xmonad: Could not load module XMonad.*

After updating my Arch Linux system, xmonad does not want to neither load nor recompile.

When running...

xmonad --recompile

...the following error shows up.

    Could not load module `XMonad.[all modules in my config here]`
    It is a member of the package `xmonad-contrib-0.17.1-[long string here]`
    which is unusable due to missing dependencies:
        X11-xft-0.3.4-[long string] random-1.2.1.1-[long string]
    Use -v (or ':set -v' in ghci) to see a list of the files searched for.

I have tried...

sudo ghc-pkg recache

...but there is no difference. This section of the wiki also doesn't help.

Reinstalling xmonad and xmonad-contrib, deleting ./ghc, reinstalling the broken packages; these also don't work.

Output of

ghc-pkg check
...lots of haddock warnings...

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
z-pandoc-z-xml-light-3.1.2
random-1.2.1.1
z-attoparsec-z-attoparsec-internal-0.14.4
z-pandoc-z-xml-light-3.0.1
pandoc-lua-engine-0.2
x509-1.7.7
pandoc-3.1.2
hackage-security-0.6.2.3
xmonad-contrib-0.17.1
xmobar-0.46
resolv-0.1.2.0
crypton-x509-validation-1.6.12
crypton-x509-system-1.6.7
crypton-connection-0.3.1
edit-distance-0.2.2.1

Output of

ghc-pkg list xmonad
WARNING: there are broken packages.  Run 'ghc-pkg check' for more details.
/usr/lib/ghc-9.0.2/package.conf.d
    xmonad-0.17.1

Last edited by Anapal (2025-04-14 10:33:55)

Offline

#2 2025-04-14 10:33:43

Anapal
Member
From: Philippines
Registered: 2022-09-17
Posts: 7

Re: [SOLVED] xmonad: Could not load module XMonad.*

Reinstalling xmonad-contrib or changing to xmonad-contrib-git seems to fix the issue, marking topic as solved.

Offline

Board footer

Powered by FluxBB