Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ghcup-hs
Merge requests
!235
Improve help output of hls compile
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve help output of hls compile
improve-hls-compile-help
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Julian Ospald
requested to merge
improve-hls-compile-help
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c9216fb4
1 commit,
3 years ago
2 files
+
6
−
13
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
app/ghcup/GHCup/OptParse/Common.hs
+
0
−
12
Options
@@ -89,18 +89,6 @@ toolVersionArgument criteria tool =
@@ -89,18 +89,6 @@ toolVersionArgument criteria tool =
mv
_
=
"VERSION|TAG"
mv
_
=
"VERSION|TAG"
toolVersionOption
::
Maybe
ListCriteria
->
Maybe
Tool
->
Parser
ToolVersion
toolVersionOption
criteria
tool
=
option
(
eitherReader
toolVersionEither
)
(
sh
tool
<>
completer
(
tagCompleter
(
fromMaybe
GHC
tool
)
[]
)
<>
foldMap
(
completer
.
versionCompleter
criteria
)
tool
)
where
sh
(
Just
GHC
)
=
long
"ghc"
<>
metavar
"GHC_VERSION|TAG"
sh
(
Just
HLS
)
=
long
"hls"
<>
metavar
"HLS_VERSION|TAG"
sh
_
=
long
"version"
<>
metavar
"VERSION|TAG"
versionParser
::
Parser
GHCTargetVersion
versionParser
::
Parser
GHCTargetVersion
versionParser
=
option
versionParser
=
option
(
eitherReader
tVersionEither
)
(
eitherReader
tVersionEither
)
Loading