Implement preliminary support for new forward-compat scheme
commit538f1269d70b3344f5e0b784f863e9d6caa7967f
authorHerbert Valerio Riedel <hvr@gnu.org>
Wed, 20 Sep 2017 10:08:02 +0000 (20 12:08 +0200)
committerOleg Grenrus <oleg.grenrus@iki.fi>
Tue, 16 Jan 2018 10:57:49 +0000 (16 12:57 +0200)
treedf62d4fc97ea77fc7b13754dacbd707eacb0928f
parentce96551332bc6c2a23009a375a4ef802e8d4543d
Implement preliminary support for new forward-compat scheme

This provides a provisional (i.e. hacky) retrofitted implementation of
the forward-compat scheme described in #4899 for the cabal-2.2 branch

This hack works by constructing a dummy package description in case
the package description fails to be parsed via the standard parser,
and we detect a new-style cabal-spec declaration.
12 files changed:
Cabal/Distribution/InstalledPackageInfo.hs
Cabal/Distribution/PackageDescription/Parsec.hs
Cabal/Distribution/Parsec/ParseResult.hs
Cabal/tests/CheckTests.hs
Cabal/tests/ParserHackageTests.hs
Cabal/tests/ParserTests.hs
cabal-install/Distribution/Client/Check.hs
cabal-install/Distribution/Client/IndexUtils.hs
cabal-testsuite/PackageTests/AutogenModules/Package/my.cabal
cabal-testsuite/PackageTests/AutogenModules/SrcDist/AutogenModules.cabal
cabal-testsuite/PackageTests/Backpack/Includes3/Includes3.cabal
cabal-testsuite/PackageTests/COnlyMain/my.cabal