Skip to content
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

Handle SPDX licences starting with a digit #10356

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 28, 2024

  1. Handle licences starting with a digit

    cabal has a devscript that parses a json file (containing SPDX licences)
    and returns a number of of Haskell data constructors.
    
    There have been problems when the SPDX short identifier starts with
    a digit (e.g. “0BSD”), as that would generate an data constructor
    starting with a digit, which is not valid Haskell.
    The way to handle such occourrences was in an ad-hoc basis.
    
    This patch prepends “N_” to the beginning of every SPDX licence starting
    with a digit, future-proofing the script.
    ffaf1 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    cdec595 View commit details
    Browse the repository at this point in the history
  2. Regenerate licence files

    Useless since we are going to have to do it again before a release,
    needed to make CI green (“Check that diff is clean”).
    ffaf1 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    52b2082 View commit details
    Browse the repository at this point in the history