
I'm trying to install aeson and http-enumerator on an otherwise fresh installation of ghc 7.2 on OS X 10.7. I was inspired by beastaugh's gist on getting cabal-install running on Lion: https://gist.github.com/1169332. I can install either aeson or http-enumerator and it'll work fine. However, as soon as I install the second one the first one disappears. The files are all there in .cabal/lib, but ghc can't find the module. Any ideas? Mike S Craig

Update: I can install other packages (mongoDB, for example), without ghc
losing previous ones. That is, the problem seems to be specific to aeson and
http-enumerator.
Mike S Craig
(908) 328 8030
On Mon, Sep 12, 2011 at 4:34 PM, Michael Craig
I'm trying to install aeson and http-enumerator on an otherwise fresh installation of ghc 7.2 on OS X 10.7. I was inspired by beastaugh's gist on getting cabal-install running on Lion: https://gist.github.com/1169332.
I can install either aeson or http-enumerator and it'll work fine. However, as soon as I install the second one the first one disappears. The files are all there in .cabal/lib, but ghc can't find the module.
Any ideas?
Mike S Craig

On Mon, Sep 12, 2011 at 3:34 PM, Michael Craig
I'm trying to install aeson and http-enumerator on an otherwise fresh installation of ghc 7.2 on OS X 10.7. I was inspired by beastaugh's gist on getting cabal-install running on Lion: https://gist.github.com/1169332. I can install either aeson or http-enumerator and it'll work fine. However, as soon as I install the second one the first one disappears. The files are all there in .cabal/lib, but ghc can't find the module. Any ideas?
What command are you using to install these, specifically? What does the following do:
cabal install aeson http-enumerator
Thanks, Antoine
Mike S Craig
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

I was using "cabal install aeson" and "cabal install http-enumerator".
Running the combined command fixed the issue. I'd forgotten that cabal
allows for it.
Is this necessary because of mutual dependencies? With the Platform
installation of cabal, I could run cabal install for each package and
everything would work fine. What's the difference?
Best,
Mike S Craig
(908) 328 8030
On Mon, Sep 12, 2011 at 4:46 PM, Antoine Latter
On Mon, Sep 12, 2011 at 3:34 PM, Michael Craig
wrote: I'm trying to install aeson and http-enumerator on an otherwise fresh installation of ghc 7.2 on OS X 10.7. I was inspired by beastaugh's gist on getting cabal-install running on Lion: https://gist.github.com/1169332. I can install either aeson or http-enumerator and it'll work fine. However, as soon as I install the second one the first one disappears. The files are all there in .cabal/lib, but ghc can't find the module. Any ideas?
What command are you using to install these, specifically?
What does the following do:
cabal install aeson http-enumerator
Thanks, Antoine
Mike S Craig
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On 12 September 2011 21:54, Michael Craig
Is this necessary because of mutual dependencies? With the Platform installation of cabal, I could run cabal install for each package and everything would work fine. What's the difference?
There isn't one, just a difference in which packages come preinstalled. Your problem sounds like a run-of-the-mill Cabal dependency resolution issue. Benedict

On Mon, Sep 12, 2011 at 3:54 PM, Michael Craig
I was using "cabal install aeson" and "cabal install http-enumerator". Running the combined command fixed the issue. I'd forgotten that cabal allows for it. Is this necessary because of mutual dependencies? With the Platform installation of cabal, I could run cabal install for each package and everything would work fine. What's the difference?
What happens is that when you run "cabal install" with multiple arguments, the dependency resolver tries to come up with an install plan that jointly satisfies the dependencies of all arguments. When you do the installs one at a time it is possible in some cases to break already installed packages. One way to check for this is to use the 'ghc-pks' command to look for broken packages. Antoine
Best, Mike S Craig (908) 328 8030
On Mon, Sep 12, 2011 at 4:46 PM, Antoine Latter
wrote: On Mon, Sep 12, 2011 at 3:34 PM, Michael Craig
wrote: I'm trying to install aeson and http-enumerator on an otherwise fresh installation of ghc 7.2 on OS X 10.7. I was inspired by beastaugh's gist on getting cabal-install running on Lion: https://gist.github.com/1169332. I can install either aeson or http-enumerator and it'll work fine. However, as soon as I install the second one the first one disappears. The files are all there in .cabal/lib, but ghc can't find the module. Any ideas?
What command are you using to install these, specifically?
What does the following do:
cabal install aeson http-enumerator
Thanks, Antoine
Mike S Craig
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Monday 12 September 2011, 23:41:47, Antoine Latter wrote:
When you do the installs one at a time it is possible in some cases to break already installed packages. One way to check for this is to use the 'ghc-pks' command to look for broken packages.
Typo, it's 'ghc-pkg', namely 'ghc-pkg check' to check for broken modules.
participants (4)
-
Antoine Latter
-
Benedict Eastaugh
-
Daniel Fischer
-
Michael Craig