Skip to content

Commit 26fcc2f

Browse files
committed
Fix up
1 parent c50c25a commit 26fcc2f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

core/src/Streamly/Internal/Unicode/Stream.hs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -190,25 +190,25 @@ encodeLatin1Lax = encodeLatin1
190190
-- UTF-8 decoding
191191
-------------------------------------------------------------------------------
192192

193-
-- CodePoint represents a specific character in the Unicode standard.
194-
-- The code point is a numerical value assigned to each character,
195-
-- and UTF-8 encoding uses a variable number of bytes to represent
193+
-- | CodePoint represents a specific character in the Unicode standard.
194+
-- The code point is a numerical value assigned to each character,
195+
-- and UTF-8 encoding uses a variable number of bytes to represent
196196
-- different code points.
197197
--
198-
-- Calculate the code point value: Depending on the type of the leading byte,
199-
-- extract the significant bits from each byte of the sequence and combine them
200-
-- to form the complete code point value. The specific bit manipulations will
201-
-- differ based on the number of bytes used.
202-
-- Int helps in cheaper conversion from Int to Char
198+
-- Calculate the code point value: Depending on the type of the leading byte,
199+
-- extract the significant bits from each byte of the sequence and combine them
200+
-- to form the complete code point value. The specific bit manipulations will
201+
-- differ based on the number of bytes used.
202+
-- Int helps in cheaper conversion from Int to Char.
203203
type CodePoint = Int
204204

205-
-- DecodeState refers to the number of bytes remaining to complete the current
206-
-- UTF-8 character decoding. For ASCII characters (code points 0 to 127),
207-
-- no decoding state is necessary because they are represented by a single byte.
205+
-- | DecodeState refers to the number of bytes remaining to complete the current
206+
-- UTF-8 character decoding. For ASCII characters (code points 0 to 127),
207+
-- no decoding state is necessary because they are represented by a single byte.
208208
-- Therefore, the decoding state for ASCII characters can be considered as 0.
209-
-- For multi-byte characters, the decoding state indicates the number of bytes
210-
-- remaining to complete the character. It is usually initialized to a non-zero
211-
-- value corresponding to the number of bytes in the multi-byte character, e.g
209+
-- For multi-byte characters, the decoding state indicates the number of bytes
210+
-- remaining to complete the character. It is usually initialized to a non-zero
211+
-- value corresponding to the number of bytes in the multi-byte character, e.g
212212
-- DecodeState will be 1 for 2-bytes char.
213213
type DecodeState = Word8
214214

0 commit comments

Comments
 (0)