ANN: Cabal 1.22 and cabal-install 1.22

Johan Tibell johan.tibell at gmail.com
Mon Jan 5 15:52:07 UTC 2015


Daniel,

Can you please file a bug at https://github.com/haskell/cabal/issues so we
can track this?

On Mon, Jan 5, 2015 at 10:27 AM, Daniel Trstenjak <
daniel.trstenjak at gmail.com> wrote:

>
> Hi,
>
> sorry that I couldn't test Cabal 1.22 earlier, but there seems to be a
> change regarding the handling and pretty printing of the
> 'GenericPackageDescription' in Cabal 1.22.
>
> Now parsing a cabal file with 'parsePackageDescription' and pretty
> printing it with 'showGenericPackageDescription' will result into
> a cabal file where every section contains the 'build-depends' field twice.
>
> Previously the dependencies have been resolved into
> 'CondNode.condTreeConstraints'
> and the field 'BuildInfo.targetBuildDepends' has been emptied.
>
> Now it seems that both - 'CondNode.condTreeConstraints' and
> 'BuildInfo.targetBuildDepends' -
> contain the dependencies and therefore they're output twice.
>
>
> The resolving into 'CondNode.condTreeConstraints' always seemed a bit
> like a hack to me, because there's already the distiction between
> 'GenericPackageDescription'
> and 'PackageDescription', and 'PackageDescription' already represeting the
> resolved state,
> so I'm wondering if it wouldn't be best to let
> 'CondNode.condTreeConstraints' just go,
> or as a first step, not using it anymore.
>
>
> Greetings,
> Daniel
> _______________________________________________
> cabal-devel mailing list
> cabal-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/cabal-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20150105/8ab9c435/attachment.html>


More information about the cabal-devel mailing list