Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
d85bf800
Commit
d85bf800
authored
2 years ago
by
BasLaa
Committed by
Mergify
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix switched name and email guess
parent
5073063d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cabal-install/src/Distribution/Client/Init/NonInteractive/Command.hs
+4
-4
4 additions, 4 deletions
...ll/src/Distribution/Client/Init/NonInteractive/Command.hs
with
4 additions
and
4 deletions
cabal-install/src/Distribution/Client/Init/NonInteractive/Command.hs
+
4
−
4
View file @
d85bf800
...
...
@@ -276,14 +276,14 @@ licenseHeuristics flags = getLicense flags $ guessLicense flags
-- | The author's name. Prompt, or try to guess from an existing
-- git repo.
authorHeuristics
::
Interactive
m
=>
InitFlags
->
m
String
authorHeuristics
flags
=
guessAuthor
Email
>>=
maybe
(
getAuthor
flags
$
return
""
)
(
getAuthor
flags
.
return
)
authorHeuristics
flags
=
guessAuthor
Name
>>=
maybe
(
getAuthor
flags
$
return
"
Unknown
"
)
(
getAuthor
flags
.
return
)
-- | The author's email. Prompt, or try to guess from an existing
-- git repo.
emailHeuristics
::
Interactive
m
=>
InitFlags
->
m
String
emailHeuristics
flags
=
guessAuthor
Name
>>=
maybe
(
getEmail
flags
$
return
""
)
(
getEmail
flags
.
return
)
emailHeuristics
flags
=
guessAuthor
Email
>>=
maybe
(
getEmail
flags
$
return
"
Unknown
"
)
(
getEmail
flags
.
return
)
-- | Prompt for a homepage URL for the package.
homepageHeuristics
::
Interactive
m
=>
InitFlags
->
m
String
...
...
This diff is collapsed.
Click to expand it.
Ben Gamari
@bgamari
mentioned in commit
84d01039
·
2 years ago
mentioned in commit
84d01039
mentioned in commit 84d01039df20217ef7a337a6855944bde07ee127
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment