Skip to content

Commit

Permalink
Provide a better explanation when ignoring fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Dec 27, 2023
1 parent 9612a48 commit 9c113a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal-syntax/src/Distribution/PackageDescription/Parsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ goSections specVer = traverse_ process
process (Field (Name pos name) _) =
lift $
parseWarning pos PWTTrailingFields $
"Ignoring trailing fields after sections: " ++ show name
"Ignoring trailing fields after sections: " ++ show name ++ ". Consider moving these fields before any stanzas in your cabal file."
process (Section name args secFields) =
parseSection name args secFields

Expand Down

0 comments on commit 9c113a0

Please sign in to comment.