-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make parsing of licenses more robust
Added an UnknownLicense String constructor so that we can remember unknown license names and report them and prevent them from being uploaded to hackage, but not fail hard with a parse error upon encountering an unknown license. This does not add any new licesnes or and new valid parses of existing licenses. The parsing phase now allows an optional version like "GPL-3" however that would still be classified as an unknown license at the moment. The point is it's no longer a parse error but a semantic error instead.
- Loading branch information
Showing
1 changed file
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters