Skip to content

Commit

Permalink
Reword Error: [S-910]
Browse files Browse the repository at this point in the history
Removes the link to a Stack issue and incorporates directly the information about the Hackage requirement, which is refected in Cabal's manual here: https://cabal.readthedocs.io/en/latest/cabal-package.html#package-descriptions.
  • Loading branch information
mpilgrem committed Nov 26, 2022
1 parent d42c2c3 commit 4066718
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Pantry/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,14 @@ instance Display PantryException where
<> fold (intersperse ", " (map display sfps))
display (MismatchedCabalName fp name) =
"Error: [S-910]\n"
<> "cabal file path "
<> "The Cabal file:\n"
<> fromString (toFilePath fp)
<> " does not match the package name it defines.\n"
<> "\nis not named after the package that it defines.\n"
<> "Please rename the file to: "
<> fromString (packageNameString name)
<> ".cabal\n"
<> "For more information, see: https://github.com/commercialhaskell/stack/issues/317"
<> "Hackage rejects packages where the first part of the Cabal file name "
<> "is not the package name."
display (NoCabalFileFound dir) =
"Error: [S-636]\n"
<> "Stack looks for packages in the directories configured in\n"
Expand Down

0 comments on commit 4066718

Please sign in to comment.