Hello, I thought I had opened an issue about this but I must have kept it in my TODOs. The haskell-build-system does not put outputs in the right place for the ghc profile hook. xmonad --recompile should Just Work with any installed haskell-build-system libraries installed via guix. I’ve been meaning to look at this for a while but I have not had the chance. Could you please open a fresh issue?
The workaround is to do this (altering for your host system and required libraries): ghc -o ~/.xmonad/xmonad-x86_64-linux \ -package-db $(guix build ghc-xmonad-contrib | grep -v static)/lib/ghc-8.6.5/ghc-xmonad-contrib-0.16.conf.d/ \ -package-db $(guix build ghc-dbus | grep -v static)/lib/ghc-8.6.5/ghc-dbus-1.2.7.conf.d/ \ -package-db $GUIX_PROFILE/lib/ghc-8.6.5/package.conf.d/ \ -dynamic xmonad.hs Hope that helps, John