Skip to content

Cabal complains about "unexpected Unknown SPDX license identifier" #176

@sjakobi

Description

@sjakobi

Given

let GitHub-project =
      https://raw.githubusercontent.com/ocharles/dhall-to-cabal/1.3.4.0/dhall/utils/GitHub-project.dhall

let types =
      https://raw.githubusercontent.com/ocharles/dhall-to-cabal/1.3.4.0/dhall/types.dhall

let prelude =
      https://raw.githubusercontent.com/ocharles/dhall-to-cabal/1.3.4.0/dhall/prelude.dhall

in    GitHub-project { owner = "sjakobi", repo = "repro" }
    ⫽ { license = types.License.BSD3, version = prelude.v "0" }

dhall-to-cabal-1.3.4.0 produces a cabal file, about which cabal complains:

$ cabal check
Warning: repro.cabal:13:14:
unexpected Unknown SPDX license identifier: 'BSD3' Do you mean BSD-3-Clause?
Errors encountered when parsing cabal file ./repro.cabal:

repro.cabal:13:14: error:
unexpected Unknown SPDX license identifier: 'BSD3' Do you mean BSD-3-Clause?

   12 | version: 0
   13 | license: BSD3
      |              ^
cabal: parse error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions