Skip to content
Snippets Groups Projects

Improve help output of hls compile

Merged Julian Ospald requested to merge improve-hls-compile-help into master
2 files
+ 6
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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