[Xmonad] Xmonad no longer compile since latest darcs pull

Donald Bruce Stewart dons at cse.unsw.edu.au
Wed Aug 15 23:28:47 EDT 2007


maillaxa:
> Hello,
> 
> Since my latest darcs pull, my config.hs file refuses to compile with
> this error:
> 
> 
> [ 1 of 21] Compiling StackSet         ( StackSet.hs,
> dist/build/xmonad/xmonad-tmp/StackSet.o )
> [ 2 of 21] Compiling XMonad           ( XMonad.hs,
> dist/build/xmonad/xmonad-tmp/XMonad.o )
> [ 3 of 21] Compiling XMonadContrib.Dmenu ( XMonadContrib/Dmenu.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Dmenu.o )
> [ 4 of 21] Compiling XMonadContrib.LayoutHelpers (
> XMonadContrib/LayoutHelpers.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/LayoutHelpers.o )
> [ 5 of 21] Compiling XMonadContrib.Circle ( XMonadContrib/Circle.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Circle.o )
> [ 6 of 21] Compiling XMonadContrib.SimpleStacking (
> XMonadContrib/SimpleStacking.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/SimpleStacking.o )
> [ 7 of 21] Compiling XMonadContrib.NamedWindows ( 
> XMonadContrib/NamedWindows.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/NamedWindows.o )
> [ 8 of 21] Compiling XMonadContrib.DynamicLog ( XMonadContrib/DynamicLog.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/DynamicLog.o )
> [ 9 of 21] Compiling Config[boot]     ( Config.hs-boot, nothing )
> [10 of 21] Compiling Operations       ( Operations.hs,
> dist/build/xmonad/xmonad-tmp/Operations.o )
> [11 of 21] Compiling XMonadContrib.XPrompt ( XMonadContrib/XPrompt.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/XPrompt.o )
> [12 of 21] Compiling XMonadContrib.DwmPromote ( XMonadContrib/DwmPromote.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/DwmPromote.o )
> [13 of 21] Compiling XMonadContrib.Roledex ( XMonadContrib/Roledex.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Roledex.o )
> 
> XMonadContrib/Roledex.hs:61:0:
>     Warning: Definition but no type signature for `div''
> [14 of 21] Compiling XMonadContrib.LayoutScreens (
> XMonadContrib/LayoutScreens.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/LayoutScreens.o )
> [15 of 21] Compiling XMonadContrib.TwoPane ( XMonadContrib/TwoPane.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/TwoPane.o )
> [16 of 21] Compiling XMonadContrib.Decoration ( XMonadContrib/Decoration.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Decoration.o )
> [17 of 21] Compiling XMonadContrib.Tabbed ( XMonadContrib/Tabbed.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Tabbed.o )
> [18 of 21] Compiling XMonadContrib.Commands ( XMonadContrib/Commands.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/Commands.o )
> [19 of 21] Compiling XMonadContrib.XMonadPrompt 
> ( XMonadContrib/XMonadPrompt.hs,
> dist/build/xmonad/xmonad-tmp/XMonadContrib/XMonadPrompt.o )
> [20 of 21] Compiling Config           ( Config.hs,
> dist/build/xmonad/xmonad-tmp/Config.o )
> 
> Config.hs:1:0:
>     Identifier `Config.workspaces' has conflicting definitions in
>  the module and its hs-boot file
> Installing: /tmp/build/xmonad/usr/lib/ghc-6.6.1/site-local/
> xmonad-0.3darcs & /tmp/build/xmonad/usr/bin xmonad-0.2...
> *** Exception: dist/build/xmonad/xmonad: copyFile: does not exist 
> (No such file or directory)
> 
> As I am still not a haskell developer, I do not know what to change :)

Something strange is there. I get, using latest darcs X11-extrsa and
xmonad:

    $ b
    Preprocessing executables for xmonad-0.2...
    Building xmonad-0.2...
    /home/dons/bin/ghc -I/usr/obj/cabal -o /usr/obj/cabal/xmonad/xmonad --make -hide-all-packages -i -i/usr/obj/cabal/autogen -i. -odir /usr/obj/cabal/xmonad/xmonad-tmp -hidir /usr/obj/cabal/xmonad/xmonad-tmp -package base-2.0 -package X11-1.2.2 -package X11-extras-0.2 -package mtl-1.0 -package unix-1.0 -funbox-strict-fields -O2 -fasm -Wall -optl-Wl,-s -fglasgow-exts Main.hs
    [1 of 6] Compiling StackSet         ( StackSet.hs, /usr/obj/cabal/xmonad/xmonad-tmp/StackSet.o )
    [2 of 6] Compiling XMonad           ( XMonad.hs, /usr/obj/cabal/xmonad/xmonad-tmp/XMonad.o )
    [3 of 6] Compiling Config[boot]     ( Config.hs-boot, nothing )
    [4 of 6] Compiling Operations       ( Operations.hs, /usr/obj/cabal/xmonad/xmonad-tmp/Operations.o )
    [5 of 6] Compiling Config           ( Config.hs, /usr/obj/cabal/xmonad/xmonad-tmp/Config.o )
    [6 of 6] Compiling Main             ( Main.hs, /usr/obj/cabal/xmonad/xmonad-tmp/Main.o )

    Main.hs:197:39: Warning: Defined but not used: `t'
    Linking /usr/obj/cabal/xmonad/xmonad ...

It built fine. Could you double check with a 'runhaskell Setup.lhs clean' first?
(Its not possible to commit a patch that breaks the core xmonad, afaik -- darcs
won't allow that to be submitted)

-- Don


More information about the Xmonad mailing list