@@ -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.
203203type 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.
213213type DecodeState = Word8
214214
0 commit comments