Skip to content

Commit 4cf4bad

Browse files
committed
Fix switched name and email guess
1 parent 71869fe commit 4cf4bad

File tree

1 file changed

+4
-4
lines changed
  • cabal-install/src/Distribution/Client/Init/NonInteractive

1 file changed

+4
-4
lines changed

cabal-install/src/Distribution/Client/Init/NonInteractive/Command.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ licenseHeuristics flags = getLicense flags $ guessLicense flags
276276
-- | The author's name. Prompt, or try to guess from an existing
277277
-- git repo.
278278
authorHeuristics :: Interactive m => InitFlags -> m String
279-
authorHeuristics flags = guessAuthorEmail >>=
280-
maybe (getAuthor flags $ return "") (getAuthor flags . return)
279+
authorHeuristics flags = guessAuthorName >>=
280+
maybe (getAuthor flags $ return "Unknown") (getAuthor flags . return)
281281

282282
-- | The author's email. Prompt, or try to guess from an existing
283283
-- git repo.
284284
emailHeuristics :: Interactive m => InitFlags -> m String
285-
emailHeuristics flags = guessAuthorName >>=
286-
maybe (getEmail flags $ return "") (getEmail flags . return)
285+
emailHeuristics flags = guessAuthorEmail >>=
286+
maybe (getEmail flags $ return "Unknown") (getEmail flags . return)
287287

288288
-- | Prompt for a homepage URL for the package.
289289
homepageHeuristics :: Interactive m => InitFlags -> m String

0 commit comments

Comments
 (0)