cln: hlint: Remove redundant case warnings.

This commit is contained in:
Stephen Morgan 2021-08-16 16:12:50 +10:00 committed by Simon Michael
parent fed75c58e9
commit 5906959882
3 changed files with 6 additions and 5 deletions

View File

@ -69,7 +69,6 @@
- ignore: {name: "Use newtype instead of data"}
- ignore: {name: "Use elemIndex"}
- ignore: {name: "Use =="}
- ignore: {name: "Redundant case"}
- ignore: {name: "Use lambda-case"}
- ignore: {name: "Redundant lambda"}
- ignore: {name: "Replace case with fromMaybe"}

View File

@ -59,9 +59,10 @@ esDraw UIState{aopts=UIOpts{cliopts_=copts@CliOpts{}}
withAttr ("border" <> "bold") (str "Oops. Please fix this problem then press g to reload")
-- <+> (if ignore_assertions_ copts then withAttr ("border" <> "query") (str " ignoring") else str " not ignoring")
bottomlabel = case mode of
bottomlabel = quickhelp
-- case mode of
-- Minibuffer ed -> minibuffer ed
_ -> quickhelp
-- _ -> quickhelp
where
quickhelp = borderKeysStr [
("h", "help")

View File

@ -113,9 +113,10 @@ tsDraw UIState{aopts=UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec@ReportSpec{
[] -> str ""
fs -> withAttr ("border" <> "query") (str $ " " ++ intercalate ", " fs)
bottomlabel = case mode of
bottomlabel = quickhelp
-- case mode of
-- Minibuffer ed -> minibuffer ed
_ -> quickhelp
-- _ -> quickhelp
where
quickhelp = borderKeysStr [
("?", "help")