[xmonad] Errors building Xmonad using Stack

Tomas Janousek tomi at nomi.cz
Tue Jul 19 22:03:59 UTC 2022


Hi,

On Tue, Jul 19, 2022 at 11:45:11PM +0200, Alain Bertrand wrote:
>The only ouput I got is :
>-------------
>alain at keitai-kun:~$~/bin/xmonad --recompile
>XMonad will use stack ghc --stack-yaml 
>"/home/alain/.config/xmonad/stack.yaml" to recompile.
>XMonad recompiling (forced).
>Errors detected while compiling xmonad config: 
>/home/alain/.config/xmonad/xmonad.hs
>$ stack build --silent --stack-yaml /home/alain/.config/xmonad/stack.yaml
>
>Please check the file for errors.
>----------------

This is admittedly somewhat confusing. Perhaps it'd be easier to 
understand if there was a "The error log follows" line somewhere, so 
we'll consider adding it. This is what it'd look like:

     XMonad will use stack ghc --stack-yaml "/home/alain/.config/xmonad/stack.yaml" to recompile.
     XMonad recompiling (forced).
     Errors detected while compiling xmonad config: /home/alain/.config/xmonad/xmonad.hs
     The error log follows:
     
     $ stack build --silent --stack-yaml /home/alain/.config/xmonad/stack.yaml
     
     Please check the file for errors.

This means `stack build …` failed, because it's the last command and 
there's no `stack ghc …` following it. Re-running it manually without 
`--silent` will hopefully reveal what's wrong.

-- 
Tomáš "liskin" ("Pivník") Janoušek, https://lisk.in/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20220719/58fafc01/attachment.html>


More information about the xmonad mailing list