[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xmonad and ghc-xmonad-contrib

From: Eric Bavier
Subject: Re: Xmonad and ghc-xmonad-contrib
Date: Thu, 5 Nov 2015 18:22:59 -0600

On Thu, 05 Nov 2015 15:29:28 +0100
Paul van der Walt <address@hidden> wrote:

> Hello Guix,
> I'm writing to ask how to configure Xmonad on GuixSD.  I've got GuixSD
> (version 0.9.0 ^^) installed and working in a VM, so that's cool.  I've
> also got the following in my config.scm:
> (packages (cons* xfce
>                  nss-certs  ; for HTTPS access
>                  xmobar     ; added in my local git-checkout of Guix
>                  openssh
>                  ghc
>                  xmonad
>                  ghc-network
>                  ghc-xmonad-contrib
>                  %base-packages))
> This is nice, because at the login screen i can select xmonad as my
> window manager.  However, it cannot compile my ~/.xmonad/xmonad.hs file,
> since (among many others) it gives the following error:
> xmonad.hs:35:8:
>         Could not find module `XMonad.Layout.NoBorders'
>         Use -v to see a list of the files searched for.

This is a known shortfall in our current xmonad.  See

I appreciate the xmobar patches you sent, btw.  It would certainly be
nice if one could configure their xmonad to use it. :)

> Et cetera.  I think this is because of the fact that ghc-xmonad-contrib
> isn't properly made available.  See the output of `ghc-pkg list` run as
> my normal user:
> /gnu/store/1iwl222h2qw80fyr578sdjdki0pbcjm0-ghc-7.10.2/lib/ghc-7.10.2/package.conf.d:
>     Cabal-
>     array-
>     base-
>     bin-package-db-
>     binary-
>     rts-1.0
>     bytestring-
>     containers-
>     deepseq-
>     directory-
>     filepath-
>     (ghc-7.10.2)
>     ghc-prim-
>     haskeline-
>     hoopl-
>     hpc-
>     integer-gmp-
>     pretty-
>     process-
>     template-haskell-
>     terminfo-
>     time-
>     transformers-
>     unix-
>     xhtml-3000.2.1
> Notably, the glaring omissions are `network` and `xmonad-contrib`.  Does
> anyone actually use Xmonad, and if so, how did they make it work?  In my
> local Guix-git repository i also tried making all the Xmonad inputs
> propagated but that didn't change anything.

It doesn't change anything because the current ghc doesn't know to look
in user profiles for libraries.

> Any ideas?  Does this mean that the package.conf.d creation is
> completely broken?  Note that if i do `guix package -i ghc-network`,
> that doesn't influence the output of `ghc-pkg list` at all...

And the same for `ghc-pkg list`.  I think the ghc-native-search-path
commit in the 'core-update' branch should fix some/most of these
issues.  If you have some spare cpu cycles, then you could check
whether xmonad configuration works better on that branch.  I just
started a VM build myself.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]