Implement `cabal check` for consistent .cabal naming (#4592)
commitca60819db76a702a859dc169957192cd0e7d3466
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 6 Jul 2017 23:04:17 +0000 (7 00:04 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 8 Jul 2017 12:25:00 +0000 (8 14:25 +0200)
tree53b1e93dadd86b3de1220ffd31adfd917e3f51c7
parentf24eaa794a52f78c742ae7fd8a08a077259bb9c0
Implement `cabal check` for consistent .cabal naming (#4592)

Hackage requires the .cabal file to be named consistently with the package name,
but `cabal check` didn't detect this yet.

Example output:

    $ cabal check
    The following errors will cause portability problems on other environments:
    * The filename ./doo.cabal does not match package name (expected: foobar.cabal)

    Hackage would reject this package.

Note: this new check is implicitly/accidentally tested by an existing (unrelated)
test in `cabal-testsuite`.
Cabal/Distribution/PackageDescription/Check.hs
Cabal/changelog
Cabal/doc/developing-packages.rst
cabal-testsuite/PackageTests/AutogenModules/Package/setup.cabal.out
cabal-testsuite/PackageTests/AutogenModules/Package/setup.out
cabal-testsuite/PackageTests/AutogenModules/SrcDist/AutogenModules.cabal [moved from cabal-testsuite/PackageTests/AutogenModules/SrcDist/my.cabal with 100% similarity]
cabal-testsuite/PackageTests/AutogenModules/SrcDist/setup.test.hs