[Haskell-cafe] Cabal dependencies

2012-10-06 Thread José Lopes
Hello, I'm trying to understand Cabal dependencies. Why does the following situation happen? # cabal install xmobar --dry-run Resolving dependencies... In order, the following would be installed: parsec-3.1.3 (reinstall) changes: mtl-2.1.1 - 2.0.1.0 xmobar-0.15 (new package) Warning: The

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
On Sat, 2012-10-06 at 17:02 +0200, José Lopes wrote: Hello, Hello I'm trying to understand Cabal dependencies. Why does the following situation happen? xmobar-0.15 depends on mtl-2.0.* and needs parsec All packages that will be broken, depends on parsec. But parsec is compiled with

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread José Lopes
OK. But, wouldn't it be possible for xmobar to use mtl-2.0.1.0 and for parsec to use mtl-2.1.1, while xmobar would use this parsec version? In this case, I am assuming that mtl-2.0.1.0 and mtl-2.1.1 are considered two different libraries. Thanks, José On 06-10-2012 17:17, Yuras Shumovich

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Duncan Coutts
On 6 October 2012 17:25, José Lopes jose.lo...@ist.utl.pt wrote: OK. But, wouldn't it be possible for xmobar to use mtl-2.0.1.0 and for parsec to use mtl-2.1.1, while xmobar would use this parsec version? In this case, I am assuming that mtl-2.0.1.0 and mtl-2.1.1 are considered two different

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
On Sat, 2012-10-06 at 18:25 +0200, José Lopes wrote: OK. But, wouldn't it be possible for xmobar to use mtl-2.0.1.0 and for parsec to use mtl-2.1.1, while xmobar would use this parsec version? In this case, I am assuming that mtl-2.0.1.0 and mtl-2.1.1 are considered two different

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread José Lopes
OK. Got it! Do you have any suggestions to install xmobar in this particular case? Thanks, José On 06-10-2012 19:08, Yuras Shumovich wrote: On Sat, 2012-10-06 at 18:25 +0200, José Lopes wrote: OK. But, wouldn't it be possible for xmobar to use mtl-2.0.1.0 and for parsec to use mtl-2.1.1,

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
On Sat, 2012-10-06 at 22:40 +0200, José Lopes wrote: OK. Got it! Do you have any suggestions to install xmobar in this particular case? In case of executables I usually rm -rf ~/.ghc, cabal install, and rm -rf ~/.ghc again. Executables are still here (in ~/.cabal/bin), but all libraries are

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread José Lopes
Thanks! On 06-10-2012 23:07, Yuras Shumovich wrote: On Sat, 2012-10-06 at 22:40 +0200, José Lopes wrote: OK. Got it! Do you have any suggestions to install xmobar in this particular case? In case of executables I usually rm -rf ~/.ghc, cabal install, and rm -rf ~/.ghc again. Executables are

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Andres Löh
Do you have any suggestions to install xmobar in this particular case? In case of executables I usually rm -rf ~/.ghc, cabal install, and rm -rf ~/.ghc again. Executables are still here (in ~/.cabal/bin), but all libraries are lost. Warning: it may break your development environment, so make

Re: [Haskell-cafe] Cabal dependencies

2009-01-20 Thread Duncan Coutts
On Thu, 2009-01-15 at 18:38 -0500, Stephen Hicks wrote: Hi, I'm having some difficulty specifying dependencies in my .cabal file for a package I'm looking to upload to hackage soon. The difficulty is as follows. I basically want to specify parsec (= 2.1 3.0.0) || ( 3.0.0 4) When we

[Haskell-cafe] Cabal dependencies

2009-01-15 Thread Stephen Hicks
Hi, I'm having some difficulty specifying dependencies in my .cabal file for a package I'm looking to upload to hackage soon. The difficulty is as follows. I basically want to specify parsec (= 2.1 3.0.0) || ( 3.0.0 4) The problem is that 3.0.0 as it exists on hackage is missing a