You are not logged in.
Hi,
After upgrading ghc and cabal-install several weeks ago, which unregistered xmonad, xmonad-contrib, and xmobar from ghc-pkg, I'm now finally reinstalling all of them to get back up to date.
xmonad-0.10 and xmonad-contrib-0.10 went just fine, but xmobar-0.15 (even with the most minimal flags) is giving me the following error:
[ 8 of 21] Compiling Control.Monad.Trans.Error ( Control/Monad/Trans/Error.hs, dist/build/Control/Monad/Trans/Error.o )
Control/Monad/Trans/Error.hs:55:21: Not in scope: `catch'
Failed to install transformers-0.2.2.0
cabal: Error: some packages failed to install:
mtl-2.0.1.0 depends on transformers-0.2.2.0 which failed to install.
parsec-3.1.3 depends on transformers-0.2.2.0 which failed to install.
transformers-0.2.2.0 failed during the building phase. The exception was:
ExitFailure 1
xmobar-0.15 depends on transformers-0.2.2.0 which failed to install.Note that I have transformers-0.3.0.0 installed as a dependency of mtl-2.1.2, which is itself a dependency (-any) of xmonad and (>=1 && <3) of xmonad-contrib. So yeah, xmonad-contrib-0.15 won't compile.
I've also tried cloning the latest xmonad-contrib-0.16 from git. That one does compile, but it has the known upstream issue of not acknowledging avoidStruts (see here and here).
Anyone have any idea how to get around the transformers dependency problem? Thanks.
Brian
Edit: Here are the relevant dependencies:
xmonad: mtl -any
xmonad-contrib: mtl >=1 && <3
xmobar: mtl ==2.0.*
mtl-2.1.2: transformers ==0.3.*
mtl-2.0.1.0: transformers ==0.2.*So the culprit is clearly transformers-0.2.*., which is required by mtl-2.0.*, which is required by xmobar. Unfortunately, I've tried compiling all versions of transformers-0.2.*, and I get the same error every time:
[ 8 of 21] Compiling Control.Monad.Trans.Error ( Control/Monad/Trans/Error.hs, dist/build/Control/Monad/Trans/Error.o )
Control/Monad/Trans/Error.hs:55:21: Not in scope: `catch'
Failed to install transformers-0.2.2.0
cabal: Error: some packages failed to install:
transformers-0.2.2.0 failed during the building phase. The exception was:
ExitFailure 1I guess this is more a problem with transformers than with xmobar...
Last edited by brianb (2012-10-27 20:33:49)
Offline
If any other xmonad users who also use cabal-install have managed to get this working, I'd be grateful to know how.
In the meantime, I've just switched over to using xmonad, xmonad-contrib, and xmobar from community. (For now, only xmobar-0.15, not 0.16, works properly. You can find it at the Arch Rollback Machine: x86_64 / i686.)
The only thing that doesn't work in the community versions of xmobar is the MPD command. I guess it's not compiled with with_mpd, for some reason.
It's a shame because, other than being able to compile xmobar with all and only the flags I want, the primary reason I switched from the Arch repos to cabal-install was to avoid dependency issues. At least now everything is in community.
Offline
According to the release notes for GHC 7.6.1 the deprecated function catch was dropped from Prelude.
You could try to patch and build the respective package(s) manually by replacing every occurrence of catch with catchIOError from System.IO.Error.
If I remember correctly there will be some other packages that won't build without intervention, though. In the end, I did manage to get the latest version from Git to build.
Offline