cln: hlint: Remove redundant case warnings.
This commit is contained in:
		
							parent
							
								
									fed75c58e9
								
							
						
					
					
						commit
						5906959882
					
				| @ -69,7 +69,6 @@ | |||||||
| - ignore: {name: "Use newtype instead of data"} | - ignore: {name: "Use newtype instead of data"} | ||||||
| - ignore: {name: "Use elemIndex"} | - ignore: {name: "Use elemIndex"} | ||||||
| - ignore: {name: "Use =="} | - ignore: {name: "Use =="} | ||||||
| - ignore: {name: "Redundant case"} |  | ||||||
| - ignore: {name: "Use lambda-case"} | - ignore: {name: "Use lambda-case"} | ||||||
| - ignore: {name: "Redundant lambda"} | - ignore: {name: "Redundant lambda"} | ||||||
| - ignore: {name: "Replace case with fromMaybe"} | - ignore: {name: "Replace case with fromMaybe"} | ||||||
|  | |||||||
| @ -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") |               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") |               -- <+> (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 |                         -- Minibuffer ed -> minibuffer ed | ||||||
|                         _             -> quickhelp |                         -- _             -> quickhelp | ||||||
|           where |           where | ||||||
|             quickhelp = borderKeysStr [ |             quickhelp = borderKeysStr [ | ||||||
|                ("h", "help") |                ("h", "help") | ||||||
|  | |||||||
| @ -113,9 +113,10 @@ tsDraw UIState{aopts=UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec@ReportSpec{ | |||||||
|                 [] -> str "" |                 [] -> str "" | ||||||
|                 fs -> withAttr ("border" <> "query") (str $ " " ++ intercalate ", " fs) |                 fs -> withAttr ("border" <> "query") (str $ " " ++ intercalate ", " fs) | ||||||
| 
 | 
 | ||||||
|         bottomlabel = case mode of |         bottomlabel = quickhelp | ||||||
|  |                         -- case mode of | ||||||
|                         -- Minibuffer ed -> minibuffer ed |                         -- Minibuffer ed -> minibuffer ed | ||||||
|                         _             -> quickhelp |                         -- _             -> quickhelp | ||||||
|           where |           where | ||||||
|             quickhelp = borderKeysStr [ |             quickhelp = borderKeysStr [ | ||||||
|                ("?", "help") |                ("?", "help") | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user