bug#47335: xmonad fails to recompile on guix system

2021-07-26 Thread Lars-Dominik Braun
Hi,

I’m seeing the same issue, but it works when explicitly installing
ghc@8.6.  Looking at haskell-build-system all Haskell libraries are
currently built with version 8.6, whereas the newest GHC version
available (and thus installed by `guix install`) is 8.8.

I feel that either xmonad should depend on the correct GHC or all
GHC versions not used to build libraries should be hidden to avoid this
situation.

Lars






bug#47335: xmonad fails to recompile on guix system

2021-03-23 Thread Charlie Ruppe
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)