Add tests Paths_ autogen module + default.extensions
commit8fc10320a5dc4898927c84ad6a2dce7965ef30db
authorOleg Grenrus <oleg.grenrus@iki.fi>
Wed, 31 Jan 2018 20:22:44 +0000 (31 22:22 +0200)
committerOleg Grenrus <oleg.grenrus@iki.fi>
Fri, 2 Feb 2018 12:53:44 +0000 (2 14:53 +0200)
tree9d12c7a987df04de5ae54d6aaa2261bbdb54fbb6
parentb36cf3c9a91e4e270a190e23fe9f65fb8b593f4e
Add tests Paths_ autogen module + default.extensions

Fixes #5086

The https://github.com/haskell/cabal/pull/5054 links to
https://github.com/commercialhaskell/stack/issues/3789 which says

- `Ensure you have OverloadedStrings and RebindableSyntax extensions
  enabled.`

So we warn only in that case. Only `OverloadeStrings` (or
`OverloadedLists`) or `RebindableSyntax` seems to be ok.

Also make `allBuildInfos` return all (not only buildable) build infos,
removing FIXME. `allBuildInfos` is used only in D.PD.Check.
Cabal/Cabal.cabal
Cabal/Distribution/PackageDescription/Check.hs
Cabal/Distribution/Types/PackageDescription.hs
Cabal/changelog
Cabal/tests/CheckTests.hs
Cabal/tests/ParserTests/regressions/extensions-paths-5054.cabal [new file with mode: 0644]
Cabal/tests/ParserTests/regressions/extensions-paths-5054.check [new file with mode: 0644]
Makefile
cabal-testsuite/PackageTests/PathsModule/Library/my.cabal