category-extras clash with transformers

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have installed mtl-1.1.1.0 so that xmonad-contrib-0.9.1 would compile with GHC 6.12.1. http://permalink.gmane.org/gmane.comp.lang.haskell.xmonad/10603 Then I tried to installed category-extras-0.53.5, which clashed with transformers-0.2.2.0 for the Applicative/Monad instances for Either. Is there any way out of this problem? Thanks for any pointers. $ ghc-pkg list | grep mtl mtl-1.1.1.0 mtl-2.0.1.0 $ ghc-pkg list | grep transformers transformers-0.2.2.0 $ cabal install category-extras ... [39 of 99] Compiling Control.Monad.Either ( src/Control/Monad/Either.hs, dist/build/Control/Monad/Either.o ) src/Control/Monad/Either.hs:44:9: Duplicate instance declarations: instance Monad (Either e) -- Defined at src/Control/Monad/Either.hs:44:9-24 instance Monad (Either e) -- Defined in transformers-0.2.2.0:Control.Monad.Trans.Error src/Control/Monad/Either.hs:49:9: Duplicate instance declarations: instance Applicative (Either e) -- Defined at src/Control/Monad/Either.hs:49:9-30 instance Applicative (Either e) -- Defined in transformers-0.2.2.0:Control.Monad.Trans.Error src/Control/Monad/Either.hs:53:9: Duplicate instance declarations: instance MonadFix (Either e) -- Defined at src/Control/Monad/Either.hs:53:9-27 instance MonadFix (Either e) -- Defined in transformers-0.2.2.0:Control.Monad.Trans.Error cabal: Error: some packages failed to install: category-extras-0.53.5 failed during the building phase. The exception was: ExitFailure 1 - -- Tony Morris http://tmorris.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkznxgQACgkQmnpgrYe6r60dkACfZQkYKbMOQuGfaVpFb2MfhJWD asAAn1/hoX+m/YpUOch3r4NsR99y2htz =IsZc -----END PGP SIGNATURE-----

On Sat, Nov 20, 2010 at 10:58:44PM +1000, Tony Morris wrote:
I have installed mtl-1.1.1.0 so that xmonad-contrib-0.9.1 would compile with GHC 6.12.1. http://permalink.gmane.org/gmane.comp.lang.haskell.xmonad/10603
Then I tried to installed category-extras-0.53.5, which clashed with transformers-0.2.2.0 for the Applicative/Monad instances for Either.
Is there any way out of this problem? Thanks for any pointers.
The instance in question is in the base package from GHC 7, which should avoid this problem of clashing orphans in the future. Unfortunately that doesn't help you -- I think both xmonad-contrib and category-extras need to be updated.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21/11/10 04:43, Ross Paterson wrote:
On Sat, Nov 20, 2010 at 10:58:44PM +1000, Tony Morris wrote:
I have installed mtl-1.1.1.0 so that xmonad-contrib-0.9.1 would compile with GHC 6.12.1. http://permalink.gmane.org/gmane.comp.lang.haskell.xmonad/10603
Then I tried to installed category-extras-0.53.5, which clashed with transformers-0.2.2.0 for the Applicative/Monad instances for Either.
Is there any way out of this problem? Thanks for any pointers.
The instance in question is in the base package from GHC 7, which should avoid this problem of clashing orphans in the future. Unfortunately that doesn't help you -- I think both xmonad-contrib and category-extras need to be updated. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe Thanks Ross, I just wish to confirm -- I'm totally screwed, right?
- -- Tony Morris http://tmorris.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzoSnsACgkQmnpgrYe6r62K3QCgnxkRqnQbv0FlKBy1sfrxcoKC 1zcAoM295VGFZBo/OQR1Qq4jW1zI3C+D =FRrh -----END PGP SIGNATURE-----

No, you're not totally screwed; you just need to bug xmonad-contrib and category-extras to fix their code. Edward

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21/11/10 08:41, Edward Z. Yang wrote:
No, you're not totally screwed; you just need to bug xmonad-contrib and category-extras to fix their code.
Edward I am wondering if upgrading from 6.12.1 to 6.12.3 will allow me to compile xmonad-contrib* and therefore, be ride of the old version of mtl and therefore, can install category extras.
* $ cabal install xmonad-contrib Resolving dependencies... Configuring xmonad-contrib-0.9.1... Preprocessing library xmonad-contrib-0.9.1... Building xmonad-contrib-0.9.1... [ 1 of 180] Compiling XMonad.Util.Replace ( XMonad/Util/Replace.hs, dist/build/XMonad/Util/Replace.o ) XMonad/Util/Replace.hs:1:0: Warning: Module `Prelude' is deprecated: You are using the old package `base' version 3.x. Future GHC versions will not support base version 3.x. You should update your code to use the new base version 4.x. [ 2 of 180] Compiling XMonad.Util.CustomKeys ( XMonad/Util/CustomKeys.hs, dist/build/XMonad/Util/CustomKeys.o ) XMonad/Util/CustomKeys.hs:80:23: Not in scope: data constructor `Reader' cabal: Error: some packages failed to install: xmonad-contrib-0.9.1 failed during the building phase. The exception was: ExitFailure 1 - -- Tony Morris http://tmorris.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzoUrYACgkQmnpgrYe6r60E4QCfXjGuWsu9xLcEVn142+lJkzRQ +0QAoJpbYpioJaIeuygxZXKLHKb7fRBk =dBSD -----END PGP SIGNATURE-----

On 21 November 2010 09:59, Tony Morris
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 21/11/10 08:41, Edward Z. Yang wrote:
No, you're not totally screwed; you just need to bug xmonad-contrib and category-extras to fix their code.
Edward I am wondering if upgrading from 6.12.1 to 6.12.3 will allow me to compile xmonad-contrib* and therefore, be ride of the old version of mtl and therefore, can install category extras.
No; since xmonad-contrib doesn't have bounds on the version of mtl being used, cabal-install will take the latest version. You need to use --constraint="mtl < 2". -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (4)
-
Edward Z. Yang
-
Ivan Lazar Miljenovic
-
Ross Paterson
-
Tony Morris