diff --git a/Cabal/Distribution/FieldGrammar/Parsec.hs b/Cabal/Distribution/FieldGrammar/Parsec.hs index 45a58079140d7e91a24f5c180c971e679afb07b3..7b712e33448af6dbe9ec2567c05e1b1d58c594d7 100644 --- a/Cabal/Distribution/FieldGrammar/Parsec.hs +++ b/Cabal/Distribution/FieldGrammar/Parsec.hs @@ -266,7 +266,7 @@ instance FieldGrammar ParsecFieldGrammar where for_ (Map.toList unknownFields) $ \(name, fields) -> for_ fields $ \(MkNamelessField pos _) -> parseWarning pos PWTUnknownField $ - "The field " <> show name <> " is available only since the Cabal specification version " ++ showCabalSpecVersion vs ++ "." + "The field " <> show name <> " is available only since the Cabal specification version " ++ showCabalSpecVersion vs ++ ". This field will be ignored." pure def diff --git a/Cabal/tests/ParserTests/regressions/multiple-libs-2.check b/Cabal/tests/ParserTests/regressions/multiple-libs-2.check index c9d75918dc64e3b0a92049dcef7c51d155b2eb8a..a244e2b89b7c89cfd19ab62241fc37cffb82617f 100644 --- a/Cabal/tests/ParserTests/regressions/multiple-libs-2.check +++ b/Cabal/tests/ParserTests/regressions/multiple-libs-2.check @@ -1,4 +1,4 @@ -multiple-libs-2.cabal:17:3: The field "visibility" is available only since the Cabal specification version 3.0. +multiple-libs-2.cabal:17:3: The field "visibility" is available only since the Cabal specification version 3.0. This field will be ignored. No 'category' field. No 'maintainer' field. No 'description' field. diff --git a/Cabal/tests/ParserTests/regressions/multiple-libs-2.format b/Cabal/tests/ParserTests/regressions/multiple-libs-2.format index c5e9321112d4bc4a0a0f8f57ff9da0af5892c009..aba24b3c2a8417c1a767dea6ca469221ed958700 100644 --- a/Cabal/tests/ParserTests/regressions/multiple-libs-2.format +++ b/Cabal/tests/ParserTests/regressions/multiple-libs-2.format @@ -1,4 +1,4 @@ -multiple-libs-2.cabal:17:3: The field "visibility" is available only since the Cabal specification version 3.0. +multiple-libs-2.cabal:17:3: The field "visibility" is available only since the Cabal specification version 3.0. This field will be ignored. cabal-version: 2.0 name: multiple-libs version: 0 diff --git a/Cabal/tests/ParserTests/regressions/wl-pprint-indef.format b/Cabal/tests/ParserTests/regressions/wl-pprint-indef.format index 407402ec7327504431720fb446e191f4deb526c8..c2bcddfcbcbfc6b240b694b04908d7e70ba89504 100644 --- a/Cabal/tests/ParserTests/regressions/wl-pprint-indef.format +++ b/Cabal/tests/ParserTests/regressions/wl-pprint-indef.format @@ -1,6 +1,6 @@ -wl-pprint-indef.cabal:28:3: The field "mixins" is available only since the Cabal specification version 2.0. -wl-pprint-indef.cabal:27:3: The field "signatures" is available only since the Cabal specification version 2.0. -wl-pprint-indef.cabal:23:3: The field "mixins" is available only since the Cabal specification version 2.0. +wl-pprint-indef.cabal:28:3: The field "mixins" is available only since the Cabal specification version 2.0. This field will be ignored. +wl-pprint-indef.cabal:27:3: The field "signatures" is available only since the Cabal specification version 2.0. This field will be ignored. +wl-pprint-indef.cabal:23:3: The field "mixins" is available only since the Cabal specification version 2.0. This field will be ignored. cabal-version: >=1.6 name: wl-pprint-indef version: 1.2