Skip to content

Remove UnknownBuildType from BuildType #5003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

hvr
Copy link
Member

@hvr hvr commented Jan 6, 2018

This is a follow-up to #4958 which opened up the opportunity to do
this make-illegal-states-unrepresentable refactoring as well.

This is a follow-up to haskell#4958 which opened up the opportunity to do
this make-illegal-states-unrepresentable refactoring as well.
@23Skidoo
Copy link
Member

23Skidoo commented Jan 7, 2018

Why did we have it in the first place?

@23Skidoo 23Skidoo merged commit 429ea50 into haskell:master Jan 7, 2018
@23Skidoo
Copy link
Member

23Skidoo commented Jan 7, 2018

Merged, thanks!

@hvr hvr deleted the pr/drop-UnknownBuildType branch January 7, 2018 08:11
@hvr
Copy link
Member Author

hvr commented Jan 7, 2018

@23Skidoo I think the original reasons can be inferred from the original comment attached to the removed constructor: basically defer error handling to cabal check. This likely has to do with the previous paradigm of parsing future .cabal versions (which #4899 gives up on) and where in theory new build-types could be added to the spec (the set of build-types has remained stable over a very long time though).

phadej added a commit to phadej/cabal that referenced this pull request Jan 31, 2018
Solves haskell#5087
Related to haskell#5003

Note: `buildable: ` field has `All` semantics. `scope: ` has
`AnyPrivate` semantics. Both might be surprising, but are "logical".

https://hackage.haskell.org/package/Cabal-2.0.1.1/docs/src/Distribution.PackageDescription.Parse.html#line-248
@phadej phadej mentioned this pull request Jan 31, 2018
4 tasks
phadej added a commit to phadej/cabal that referenced this pull request Jan 31, 2018
Solves haskell#5087
Related to haskell#5003

Note: `buildable: ` field has `All` semantics. `scope: ` has
`AnyPrivate` semantics. Both might be surprising, but are "logical".

https://hackage.haskell.org/package/Cabal-2.0.1.1/docs/src/Distribution.PackageDescription.Parse.html#line-248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants