Remove fields in cabal spec 3.0
- extensions - (singular) hs-source-dir - build-tools Example, with `cabal-version: 2.5` ``` [laptop] tree-diff % cabal new-build --dry Errors encountered when parsing cabal file ./tree-diff.cabal: tree-diff.cabal:59:3: error: The field "extensions" is removed in the Cabal specification version 2.5. Please use 'default-extensions' or 'other-extensions' fields. 58 | library 59 | extensions: CPP | ^ tree-diff.cabal:60:3: error: The field "extensions" is removed in the Cabal specification version 2.5. Please use 'default-extensions' or 'other-extensions' fields. 59 | extensions: CPP 60 | extensions: DeriveGeneric | ^ ``` I needed to add new CabalSpecVersion to properly issue deprecation messages of `extensions`.
Showing
- Cabal/Cabal.cabal 2 additions, 0 deletionsCabal/Cabal.cabal
- Cabal/Distribution/FieldGrammar/Class.hs 7 additions, 0 deletionsCabal/Distribution/FieldGrammar/Class.hs
- Cabal/Distribution/FieldGrammar/FieldDescrs.hs 1 addition, 0 deletionsCabal/Distribution/FieldGrammar/FieldDescrs.hs
- Cabal/Distribution/FieldGrammar/Parsec.hs 26 additions, 1 deletionCabal/Distribution/FieldGrammar/Parsec.hs
- Cabal/Distribution/FieldGrammar/Pretty.hs 5 additions, 1 deletionCabal/Distribution/FieldGrammar/Pretty.hs
- Cabal/Distribution/PackageDescription/FieldGrammar.hs 5 additions, 0 deletionsCabal/Distribution/PackageDescription/FieldGrammar.hs
- Cabal/doc/cabaldomain.py 30 additions, 1 deletionCabal/doc/cabaldomain.py
- Cabal/doc/developing-packages.rst 4 additions, 2 deletionsCabal/doc/developing-packages.rst
- Cabal/doc/file-format-changelog.rst 5 additions, 2 deletionsCabal/doc/file-format-changelog.rst
- Cabal/tests/ParserTests.hs 1 addition, 0 deletionsCabal/tests/ParserTests.hs
- Cabal/tests/ParserTests/errors/removed-fields.cabal 14 additions, 0 deletionsCabal/tests/ParserTests/errors/removed-fields.cabal
- Cabal/tests/ParserTests/errors/removed-fields.errors 3 additions, 0 deletionsCabal/tests/ParserTests/errors/removed-fields.errors
Loading
Please register or sign in to comment