on master help sign in
fix hlint suggestion
commit31e4696223a5d4ddcda7d7a2ba8b7056d5b2b0e3 authorAgentM <agentm@themactionfaction.com> dateThu 12 Apr 2018, 23:13 (9 years ago) parent848818b
1 file changed+5−5
src/lib/ProjectM36/WCWidth.hs+5−5
src/lib/ProjectM36/WCWidth.hs+5−5
@@ -417,9 +417,9 @@ ctrlChars = foldr insertRange empty [
417417 ]
418418
419419wcwidth :: Char -> Int
420−wcwidth c = if queryPoint v basicZero then 0
421− else if queryPoint v ctrlChars then -1
422− else if queryPoint v wIDEEASTASIAN then 2
423− else if queryPoint v zEROWIDTH then 0
424− else 1
420+wcwidth c | queryPoint v basicZero = 0
421+ | queryPoint v ctrlChars = -1
422+ | queryPoint v wIDEEASTASIAN = 2
423+ | queryPoint v zEROWIDTH = 0
424+ | otherwise = 1
425425 where v = ord c