on master help sign in
mkRanges: caveat
commit5435e8f8b35eef4e1cb9940d337370cc36555941 authorJonathan Daugherty <cygnus@foobox.com> dateThu 5 Mar 2020, 10:20 (7 years ago) parent5ed59bb
1 file changed+3
src/Graphics/Vty/UnicodeWidthTable/Query.hs+3
src/Graphics/Vty/UnicodeWidthTable/Query.hs+3
@@ -30,6 +30,9 @@ charWidth c = do
3030-- run-length encoded ranges. This function assumes the pairs come
3131-- sorted by character ordinal value. It does not require that the
3232-- character range is fully covered by the sequence.
33+--
34+-- The result of this function is a list of ranges in reverse order
35+-- relative to the input sequence.
3336mkRanges :: [(Char, Int)] -> [WidthTableRange]
3437mkRanges pairs =
3538 let convertedPairs = convert <$> pairs