[xmonad] Compilation error in darcs xmonad-contrib

Toby Cubitt tsc25 at cantab.net
Tue Feb 8 16:28:45 CET 2011


On Tue, Feb 08, 2011 at 01:15:13PM +0100, Jan-David Quesel wrote:
> On Tue, Feb 08, 2011 at 12:36:43PM +0100, Toby Cubitt wrote:
> > For a little while now, I've been unable to compile xmonad-contrib from
> > darcs. Now that the repo is back up, I tried again, but am still getting
> > the same error as before:
> > 
> > [ 34 of 212] Compiling XMonad.Hooks.ICCCMFocus ( XMonad/Hooks/ICCCMFocus.hs, dist/build/XMonad/Hooks/ICCCMFocus.o )
> > 
> > XMonad/Hooks/ICCCMFocus.hs:43:17:
> >     Ambiguous occurrence `atom_WM_TAKE_FOCUS'
> >     It could refer to either `XMonad.Hooks.ICCCMFocus.atom_WM_TAKE_FOCUS', defined at XMonad/Hooks/ICCCMFocus.hs:34:0
> >                           or `XMonad.atom_WM_TAKE_FOCUS', imported from XMonad at XMonad/Hooks/ICCCMFocus.hs:27:0-12
> > 
> > 
> > This is with ghc 6.12.3, and version 1.5.0.0 of the haskell X11
> > libraries. Is there something amiss with my xmonad/haskell setup, or is
> > there an error in the current darcs xmonad-contrib?
> 
> I would suggest patching the ICCCMFocus file be removing the
> internal declaration of atom_WM_TAKE_FOUCS... so remove the lines
> 33-36.

That did the trick. Thanks! (Once again, I'm amazed by the speed and
helpfulness of the comments on this list.)

If I understand right, this internal definition is conflicting with
another definition of atom_WM_TAKE_FOCUS from somewhere else. Is this
because there's something squiffy about my xmonad installation, or does
something need to be fixed in xmonad-contrib?

Someone more knowledgeable than me will need to answer this, I think...

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: tsc25 at cantab.net
web:   www.dr-qubit.org



More information about the xmonad mailing list