Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Disappearing Module Problem (Michael Craig)
2. Re: Disappearing Module Problem (Benedict Eastaugh)
3. Re: Disappearing Module Problem (Antoine Latter)
4. Re: Disappearing Module Problem (Daniel Fischer)
----------------------------------------------------------------------
Message: 1
Date: Mon, 12 Sep 2011 16:54:17 -0400
From: Michael Craig <[email protected]>
Subject: Re: [Haskell-beginners] Disappearing Module Problem
To: Antoine Latter <[email protected]>
Cc: [email protected]
Message-ID:
<CAHa9zAFc0fqEmytzZ+XOy5=wvzfc0outw5eo7epdgrasmkb...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
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 <[email protected]> wrote:
> On Mon, Sep 12, 2011 at 3:34 PM, Michael Craig <[email protected]> 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
> > [email protected]
> > http://www.haskell.org/mailman/listinfo/beginners
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110912/147a6579/attachment-0001.htm>
------------------------------
Message: 2
Date: Mon, 12 Sep 2011 22:26:23 +0100
From: Benedict Eastaugh <[email protected]>
Subject: Re: [Haskell-beginners] Disappearing Module Problem
To: Michael Craig <[email protected]>
Cc: [email protected]
Message-ID:
<caoco6ukgjb4xgyvzk0aehghq7gf-1rwqq6aynpdcajwbker...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 12 September 2011 21:54, Michael Craig <[email protected]> wrote:
> 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
------------------------------
Message: 3
Date: Mon, 12 Sep 2011 16:41:47 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Disappearing Module Problem
To: Michael Craig <[email protected]>
Cc: [email protected]
Message-ID:
<CAKjSnQF7V3j=ynf5aTFEHxOpxwm9RWV-r=KqFv-ek5EifC4=s...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Mon, Sep 12, 2011 at 3:54 PM, Michael Craig <[email protected]> wrote:
> 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 <[email protected]> wrote:
>>
>> On Mon, Sep 12, 2011 at 3:34 PM, Michael Craig <[email protected]> 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
>> > [email protected]
>> > http://www.haskell.org/mailman/listinfo/beginners
>> >
>> >
>
>
------------------------------
Message: 4
Date: Mon, 12 Sep 2011 23:57:12 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Disappearing Module Problem
To: [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain; charset="utf-8"
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.
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 39, Issue 16
*****************************************