<div dir="ltr">Thank you!</div><br><div class="gmail_quote"><div dir="ltr">чт, 27 июл. 2017 г. в 23:21, Evan Laforge <<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the reply.  I got cabal-install from<br>
<a href="https://github.com/haskell/cabal/" rel="noreferrer" target="_blank">https://github.com/haskell/cabal/</a> and assumed it was the latest<br>
version... but now that I look carefully I see it has a 2.0 branch.  I<br>
compiled it and I don't get that confusing "parse error" any more.  It<br>
looks like a nicer error message in general too (except still missing<br>
some spaces, specifically "After searching the rest of the dependency<br>
tree exhaustively, these were the goals I've had most trouble<br>
fulfilling: karya, ekgTrying configure anyway."), so that's probably<br>
thanks to the solver improvements in 2.0.<br>
<br>
Since it's apparently just a bug in older cabal-installs I guess I<br>
won't bother trying to find it.<br>
<br>
On Wed, Jul 26, 2017 at 7:01 PM, Wolfgang Jeltsch<br>
<<a href="mailto:wolfgang-it@jeltsch.info" target="_blank">wolfgang-it@jeltsch.info</a>> wrote:<br>
> Hi!<br>
><br>
> I ran into the same problem.<br>
><br>
> Apparently, we need cabal-install 2.0, which has not been released yet.<br>
> A preliminary solution is to use the development version from the 2.0<br>
> branch. Binary packages can be found at<br>
><br>
>      <a href="http://ppa.launchpad.net/hvr/ghc/ubuntu/pool/main/c/cabal-install-2.0/" rel="noreferrer" target="_blank">http://ppa.launchpad.net/hvr/ghc/ubuntu/pool/main/c/cabal-install-2.0/</a>  ,<br>
><br>
> for example. It is possible to extract the cabal-install executable from<br>
> these packages, so that it can be installed without using some Linux<br>
> distribution package manager.<br>
><br>
> All the best,<br>
> Wolfgang<br>
><br>
> Am Mittwoch, den 26.07.2017, 18:45 -0700 schrieb Evan Laforge:<br>
>> This seems like a silly question, but how can we install cabal-install<br>
>> now?  The latest hackage version 1.24.0.2 has Cabal (>=1.24.2 &&<br>
>> <1.25), but it looks like ghc Cabal is now at 2.*.<br>
>><br>
>> I ran into this because if I get:<br>
>><br>
>> % cabal install --only-dependencies<br>
>> Resolving dependencies...<br>
>> cabal: internal error when reading package index: failed to parse<br>
>> .cabal<br>
>> fileThe package index or index cache is probably corrupt. Running<br>
>> cabal update<br>
>> might fix it.<br>
>><br>
>> It seems to be triggered by having 'ekg' in the deps list, since if I<br>
>> take it out then I get some other errors about packages not liking the<br>
>> new base, which is true.  'ekg' also doesn't like the new base, but<br>
>> "internal error" is not the clearest way to express that :)<br>
>><br>
>> It's frustrating that cabal-install still doesn't report the parse<br>
>> error, even though the parse function returns one.  It just ignores<br>
>> the ParseFailed case.  I was going to try fixing it and send a pull<br>
>> request when I ran into the Cabal 2.* problem.<br>
>><br>
>> On Wed, Jul 26, 2017 at 7:15 AM, Ben Gamari <<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>><br>
>> wrote:<br>
>> ><br>
>> > Wolfgang Jeltsch <<a href="mailto:wolfgang-it@jeltsch.info" target="_blank">wolfgang-it@jeltsch.info</a>> writes:<br>
>> ><br>
>> > ><br>
>> > > Am Samstag, den 22.07.2017, 23:03 -0400 schrieb Ben Gamari:<br>
>> > > ><br>
>> > > > In addition, there are a number of new features,<br>
>> > > ><br>
>> > > >  * A new, more type-safe type reflection mechanism<br>
>> > > ><br>
>> > > >  * The long-awaited Backpack module system<br>
>> > > ><br>
>> > > >  * Deriving strategies to disambiguate between GHC's various<br>
>> > > > instance<br>
>> > > >    deriving mechanisms<br>
>> > > ><br>
>> > > >  * Unboxed sum types, for efficient unpacked representation of<br>
>> > > > sum<br>
>> > > >    data types<br>
>> > > ><br>
>> > > >  * Compact regions, allowing better control over garbage<br>
>> > > > collection<br>
>> > > >    in the presence of large heaps containing many long-lived<br>
>> > > > objects.<br>
>> > > ><br>
>> > > >  * Colorful messages and caret diagnostics for more legible<br>
>> > > > errors<br>
>> > > ><br>
>> > > > A more thorough list of the changes in this release can be found<br>
>> > > > in<br>
>> > > > the release notes,<br>
>> > > ><br>
>> > > >   <a href="https://haskell.org/ghc/docs/8.2.1/docs/html/users_guide/8.2.1" rel="noreferrer" target="_blank">https://haskell.org/ghc/docs/8.2.1/docs/html/users_guide/8.2.1</a><br>
>> > > > -notes.html<br>
>> > > It seems that the release notes mention the new type reflection<br>
>> > > mechanism und colorful messages only in the “Highlights” section,<br>
>> > > not in<br>
>> > > the “Full details” section, and that they do not mention the<br>
>> > > Backpack<br>
>> > > module system and unboxed sums at all.<br>
>> > ><br>
>> > Yes, indeed these were oversights. They are fixed in the ghc-8.2<br>
>> > branch<br>
>> > and I will try to push newly generated documentation shortly.<br>
>> ><br>
>> > Cheers,<br>
>> ><br>
>> > - Ben<br>
>> ><br>
>> > _______________________________________________<br>
>> > Glasgow-haskell-users mailing list<br>
>> > <a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.org</a><br>
>> > <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-use" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-use</a><br>
>> > rs<br>
>> ><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>