[xmonad] Recommended setup for coding

Ralph Hofmann hofmann2004 at arcor.de
Mon Jan 25 07:52:37 EST 2010

I have decided to move to the darcs version, but now xmonad hangs.

I have downloaded xmonad, XMonadContrib and X11 with darcs and installed
them with cabal-install without problems. Xmonad recompiles and starts,
but only shows fragmented windows and doesn't react properly on keys and
mouse. I have to kill the Xsession with Alt-Print-k in order to return
to the login-screen. Even with the most simple xmonad.hs.

Everything was fine, as long as I kept the debian installation, but
having both installations, I wasn't sure, which version I was running.
After removing all debian packages related to xmonad, the problem
occurred for the first time.

What is wrong? Maybe I have removed to much (for example
libghc6-xmonad-dev?), but I had assumed, I would get all needed packages
from darcs, except ghc of course.

I use Ubuntu-9.10 with ghc-6.10.4.


Am Samstag, den 23.01.2010, 12:20 +0100 schrieb Quentin Moser:
> If you aren't planning anything large-scale, you can use any XMonad
> install and create
> modules in your ~/.xmonad/lib directory, which is in the search path
> when XMonad compiles your config. So, for example:
> ~/.xmonad/lib/XMonad/Layout/ANewLayout.hs
> ~/.xmonad/lib/XMonad/Util/SomeUtilityStuff.hs
> You can import these in your xmonad.hs as if they were part of
> xmonad-contrib. Using the same hierarchy as the rest of XMonad also
> makes it easy to integrate your modules into the xmonad-contrib darcs
> repo if/when you think they're worth it.
> There are a number of problems with this simple method though:
> * XMonad will recompile _all_ your imported lib/* modules on each
> recompile, so you can't keep too
>   much stuff in there. It will also compile them without optimizations
> to reduce the recompilation time,
>   and Haskell without optimization isn't really that fast anymore.
> * You can't modify current modules in this way (unless you want to
> "overlay" them with a completely
>   new one).
> * You still need to cabal-install the darcs version when you want to
> publish patches, since you need
>   to test them at least once against the current head.
> So if you find yourself writing a lot of modules, or sending patches
> to xmonad-contrib regularly, you'll need to work with cabal-install
> and the xmonad-contrib darcs repo. It's still fairly simple:
> * Perform your modifications in the darcs directory.
> * Type "cabal install" at its top-level when you're done with a change.
> * "xmonad --recompile" to recompile your xmonad.hs using the new lib.
> * And you're working in a darcs repo, so you have version control handy.
> As for the Haskell Platform, it contains cabal-install so if you can't
> find a cabal-install package for Ubuntu you can install that instead.,
> but there's nothing else you need in it.
> Hope it helps
> Quentin
> On Sat, Jan 23, 2010 at 10:50 AM, Ralph Hofmann <hofmann2004 at arcor.de> wrote:
> > I would like to try some haskell coding with xmonad. What is the best
> > xmonad install for this purpose?
> >
> > Is it essential to use the cabal version? What is your opinion about the
> > "Haskell Platform" instead of ghc -->
> > http://sporkcode.wordpress.com/2009/07/11/installing-the-haskell-platform-in-ubuntu/?
> >
> > So far i am using ghc/xmonad-0.9.1 from debian sid, installed on ubuntu
> > 9.10. If possible i would like to keep this unchanged, because
> > everything works fine.
> >
> >
> > Ralph
> >
> > _______________________________________________
> > xmonad mailing list
> > xmonad at haskell.org
> > http://www.haskell.org/mailman/listinfo/xmonad
> >
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad

More information about the xmonad mailing list