Subject: xmonad fails to recompile on guix system

From: Charlie Ruppe <[email-masked]>
Date: Tue, 23 Mar 2021 00:13:36 +0000

Package: guix
Version: 1.2.0-17.ec7fb6

I am trying to recompile xmonad with a fairly simple xmonad.hs
The package itself builds, installs, and runs correctly, but it throws
errors when recompiling my configuration. Configuration is very short but
is pasted here: http://paste.debian.net/1190543/

The same error is thrown when attempting to compile xmonad with ghc
directly, and inside and out of xmonad's build environment.

The following is the error that is printed when attempting to recompile
xmonad from within the build environment for xmonad within the directory
~/.xmonad/ containing xmonad.hs

[env]$ xmonad --recompile
XMonad will use ghc to recompile, because "/home/fever/.xmonad/build" does
not exist.
Error detected while loading xmonad configuration file:
/home/fever/.xmonad/xmonad.hs

xmonad.hs:1:1: error:
    Could not find module ‘XMonad’
    Perhaps you meant DsMonad (needs flag -package-key ghc-8.6.5)
    Use -v to see a list of the files searched for.
  |
1 | import XMonad
  | ^^^^^^^^^^^^^

xmonad.hs:2:1: error:
    Could not find module ‘XMonad.Config.Desktop’
    Use -v to see a list of the files searched for.
  |
2 | import XMonad.Config.Desktop
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)