Fix #185: Support and use autogen-modules. #196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes it possible to generate tarballs without generated modules
(which would be regenerated anyway when the package is build).
See tensorflow/haskell#180 for an example of the issues that causes.
For
Cabal-1.*
, this continues the behavior as before.Unfortunately,
hpack
requirescabal-version: >=2.0
when you useits
generated-modules
orgenerated-other-modules
fields.Our current set of LTSes that we support still includes
Cabal-1.*
(which I think is correct). Luckily we could work around that
using
hpack
'sverbatim
field to accomplish the same thing a littlemore verbosely. Additionally, I mitigated the situation a little by changing
the Cabal test script to not
sdist
packages that we're not releasing(
proto-lens-{tests/benchmarks}
).This change required bumping
stack
to1.7.1
in order to get new enoughversions of
Cabal
andhpack
. Happily, it greatly simplifiesthe steps for releasing our packages.
This change is