[xmonad] Errors building Xmonad using Stack

Alain Bertrand alainbe at free.fr
Wed Jul 20 19:53:11 UTC 2022


On 20/07/2022 18:53, Brandon Allbery wrote:
> `cabal install --lib X11

alain at keitai-kun:~/.cabal$ cabal install --lib X11
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.1.0 supports
'ghc' version < 8.10): /usr/bin/ghc is version 9.0.2
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.1.0 supports
'ghc' version < 8.10): /usr/bin/ghc is version 9.0.2
Resolving dependencies...
Up to date

alain at keitai-kun:~/.config/xmonad$ ~/.cabal/bin/xmonad --recompile
XMonad will use ghc to recompile, because neither 
"/home/alain/.config/xmonad/build" nor 
"/home/alain/.config/xmonad/stack.yaml
" exists.
XMonad recompiling (forced).
Errors detected while compiling xmonad config: 
/home/alain/.config/xmonad/xmonad.hs
$ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 
-outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /ho
me/alain/.cache/xmonad/xmonad-x86_64-linux

xmonad.hs:5:2: error:
    Could not load module ‘Graphics.X11.Xlib’
    It is a member of the hidden package ‘X11-1.10.2’.
    You can run ‘:set -package X11’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 |  import Graphics.X11.Xlib
  |  ^^^^^^^^^^^^^^^^^^^^^^^^

Interestingly,

alain at keitai-kun:~/.cabal$ find ~/.cabal/ -iname "*Graphics.X11*"

doesn't return anything.

Alain




More information about the xmonad mailing list