Current darcs version doesn't compile

The current version of xmonad in darcs doesn't compile for me: $ darcs get http://code.haskell.org/xmonad Copying patch 694 of 694... done! Applying patch 694 of 694... done. Finished getting. $ cd xmonad/ $ chmod u+x Setup.lhs $ ./Setup.lhs configure Configuring xmonad-0.3... configure: Dependency base>=2.0: using base-2.1.1 configure: Dependency X11>=1.2.1: using X11-1.2.1 configure: Dependency X11-extras>=0.3: using X11-extras-0.3 configure: Dependency mtl>=1.0: using mtl-1.0.1 configure: Dependency unix>=1.0: using unix-2.1 configure: Using install prefix: /usr/local configure: Binaries installed in: /usr/local/bin configure: Libraries installed in: /usr/local/lib/xmonad-0.3/ghc-6.6.1 configure: Private binaries installed in: /usr/local/libexec configure: Data files installed in: /usr/local/share/xmonad-0.3 configure: Using compiler: /home/dbenbenn/apps/bin/ghc configure: Compiler flavor: GHC configure: Compiler version: 6.6.1 configure: Using package tool: /home/dbenbenn/apps/bin/ghc-pkg configure: Using ar found on system at: /usr/bin/ar configure: No haddock found configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /home/dbenbenn/apps/bin/runghc configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: /home/dbenbenn/apps/bin/hsc2hs configure: No c2hs found configure: No cpphs found configure: No greencard found $ ./Setup.lhs build Preprocessing executables for xmonad-0.3... Building xmonad-0.3... [1 of 6] Compiling StackSet ( StackSet.hs, dist/build/xmonad/xmonad-tmp/StackSet.o ) StackSet.hs:234:0: Warning: Pattern match(es) are non-exhaustive In the definition of `view': Patterns not matched: _ _ [2 of 6] Compiling XMonad ( XMonad.hs, dist/build/xmonad/xmonad-tmp/XMonad.o ) [3 of 6] Compiling Config[boot] ( Config.hs-boot, nothing ) [4 of 6] Compiling Operations ( Operations.hs, dist/build/xmonad/xmonad-tmp/Operations.o ) [5 of 6] Compiling Config ( Config.hs, dist/build/xmonad/xmonad-tmp/Config.o ) [6 of 6] Compiling Main ( Main.hs, dist/build/xmonad/xmonad-tmp/Main.o ) Main.hs:258:7: Not in scope: data constructor `PropertyEvent' Main.hs:258:42: Not in scope: `ev_atom' Maybe a dependency is missing from the configure step? Any ideas? I was able to compile from darcs two weeks ago.

dbenbenn:
The current version of xmonad in darcs doesn't compile for me:
$ darcs get http://code.haskell.org/xmonad Copying patch 694 of 694... done! Applying patch 694 of 694... done. Finished getting. $ cd xmonad/ $ chmod u+x Setup.lhs $ ./Setup.lhs configure Configuring xmonad-0.3... configure: Dependency base>=2.0: using base-2.1.1 configure: Dependency X11>=1.2.1: using X11-1.2.1 configure: Dependency X11-extras>=0.3: using X11-extras-0.3 configure: Dependency mtl>=1.0: using mtl-1.0.1 configure: Dependency unix>=1.0: using unix-2.1 configure: Using install prefix: /usr/local configure: Binaries installed in: /usr/local/bin configure: Libraries installed in: /usr/local/lib/xmonad-0.3/ghc-6.6.1 configure: Private binaries installed in: /usr/local/libexec configure: Data files installed in: /usr/local/share/xmonad-0.3 configure: Using compiler: /home/dbenbenn/apps/bin/ghc configure: Compiler flavor: GHC configure: Compiler version: 6.6.1 configure: Using package tool: /home/dbenbenn/apps/bin/ghc-pkg configure: Using ar found on system at: /usr/bin/ar configure: No haddock found configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /home/dbenbenn/apps/bin/runghc configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: /home/dbenbenn/apps/bin/hsc2hs configure: No c2hs found configure: No cpphs found configure: No greencard found $ ./Setup.lhs build Preprocessing executables for xmonad-0.3... Building xmonad-0.3... [1 of 6] Compiling StackSet ( StackSet.hs, dist/build/xmonad/xmonad-tmp/StackSet.o )
StackSet.hs:234:0: Warning: Pattern match(es) are non-exhaustive In the definition of `view': Patterns not matched: _ _ [2 of 6] Compiling XMonad ( XMonad.hs, dist/build/xmonad/xmonad-tmp/XMonad.o ) [3 of 6] Compiling Config[boot] ( Config.hs-boot, nothing ) [4 of 6] Compiling Operations ( Operations.hs, dist/build/xmonad/xmonad-tmp/Operations.o ) [5 of 6] Compiling Config ( Config.hs, dist/build/xmonad/xmonad-tmp/Config.o ) [6 of 6] Compiling Main ( Main.hs, dist/build/xmonad/xmonad-tmp/Main.o )
Main.hs:258:7: Not in scope: data constructor `PropertyEvent'
Main.hs:258:42: Not in scope: `ev_atom'
Maybe a dependency is missing from the configure step? Any ideas? I was able to compile from darcs two weeks ago.
Please update your X11-extras darcs repository, there was a recent change and we forgot to bump the X11-extras minor version. Also, be sure to run 'runhaskell Setup.lhs clean' in xmonad, after rebuilding X11-extras. -- Don

On Oct 10, 2007, at 12:49 , David Benbennick wrote:
The current version of xmonad in darcs doesn't compile for me: (...) Main.hs:258:7: Not in scope: data constructor `PropertyEvent'
Helpful hint: *always* update X11-extras and xmonad at the same time. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

allbery:
On Oct 10, 2007, at 12:49 , David Benbennick wrote:
The current version of xmonad in darcs doesn't compile for me: (...) Main.hs:258:7: Not in scope: data constructor `PropertyEvent'
Helpful hint: *always* update X11-extras and xmonad at the same time.
And we're now going to bump the X11-extras minor version on every api change, so that Cabal should catch these inconsitencies.

On Wed, Oct 10, 2007 at 09:49:44AM -0700, David Benbennick wrote:
The current version of xmonad in darcs doesn't compile for me: [6 of 6] Compiling Main ( Main.hs, dist/build/xmonad/xmonad-tmp/Main.o )
Main.hs:258:7: Not in scope: data constructor `PropertyEvent'
Main.hs:258:42: Not in scope: `ev_atom'
...
Maybe a dependency is missing from the configure step? Any ideas? I was able to compile from darcs two weeks ago.
to run the darcs version of Xmonad you need the darcs version of X11-extras. Andrea ps: there should be a clear note in the README. This is also a V(ery)FAQ... ;)

mailing_list:
On Wed, Oct 10, 2007 at 09:49:44AM -0700, David Benbennick wrote:
The current version of xmonad in darcs doesn't compile for me: [6 of 6] Compiling Main ( Main.hs, dist/build/xmonad/xmonad-tmp/Main.o )
Main.hs:258:7: Not in scope: data constructor `PropertyEvent'
Main.hs:258:42: Not in scope: `ev_atom'
...
Maybe a dependency is missing from the configure step? Any ideas? I was able to compile from darcs two weeks ago.
to run the darcs version of Xmonad you need the darcs version of X11-extras.
Andrea
ps: there should be a clear note in the README. This is also a V(ery)FAQ... ;)
Quoth the README: Notes for using the darcs version If you're building the darcs version of xmonad, be sure to also use the darcs version of X11-extras, which is developed concurrently with xmonad. darcs get http://code.haskell.org/X11-extras Not using X11-extras from darcs, is the most common reason for the darcs version of xmonad to fail to build. Hopefully, this, along with Cabal checking, will help out the darcs users avoiding this problem
participants (4)
-
Andrea Rossato
-
Brandon S. Allbery KF8NH
-
David Benbennick
-
Don Stewart