@@ -109,6 +109,8 @@ part of the Unicode standard
109109
110110__Note:__ the classes must be in the same order they are listed in the Unicode Standard,
111111because some functions (e.g. 'generalCategory') rely on the 'Enum' instance.
112+
113+ @since 0.3.0
112114-}
113115data GeneralCategory
114116 -- L: Letter
@@ -163,6 +165,8 @@ data GeneralCategory
163165 )
164166
165167-- | Abbreviation of 'GeneralCategory' used in the Unicode standard.
168+ --
169+ -- @since 0.3.0
166170generalCategoryAbbr :: GeneralCategory -> String
167171generalCategoryAbbr = \ case
168172 UppercaseLetter -> " Lu"
@@ -204,6 +208,8 @@ This relies on the 'Enum' instance of 'GeneralCategory', which must remain in th
204208same order as the categories are presented in the Unicode standard.
205209
206210prop> show (generalCategory c) == show (Data.Char.generalCategory c)
211+
212+ @since 0.3.0
207213-}
208214{-# INLINE generalCategory #-}
209215generalCategory :: Char -> GeneralCategory
@@ -233,6 +239,8 @@ __Note:__ this function is /not/ equivalent to 'Unicode.Char.General.Compat.isAl
233239 * 'OtherLetter' (@Lo@)
234240 * 'LetterNumber' (@Nl@)
235241 * @Other_Alphabetic@ [property](https://www.unicode.org/reports/tr44/#Other_Alphabetic)
242+
243+ @since 0.3.0
236244-}
237245{-# INLINE isAlphabetic #-}
238246isAlphabetic :: Char -> Bool
@@ -253,6 +261,8 @@ following 'GeneralCategory's, or 'False' otherwise:
253261* 'OtherNumber'
254262
255263prop> isAlphaNum c == Data.Char.isAlphaNum c
264+
265+ @since 0.3.0
256266-}
257267isAlphaNum :: Char -> Bool
258268isAlphaNum c = case generalCategory c of
@@ -272,6 +282,8 @@ of the Latin-1 subset of Unicode.
272282This function returns 'True' if its argument has the 'GeneralCategory' 'Control'.
273283
274284prop> isControl c == Data.Char.isControl c
285+
286+ @since 0.3.0
275287-}
276288isControl :: Char -> Bool
277289isControl c = case generalCategory c of
@@ -289,6 +301,8 @@ following 'GeneralCategory's, or 'False' otherwise:
289301* 'EnclosingMark'
290302
291303prop> isMark c == Data.Char.isMark c
304+
305+ @since 0.3.0
292306-}
293307isMark :: Char -> Bool
294308isMark c = case generalCategory c of
@@ -312,6 +326,8 @@ following 'GeneralCategory's, or 'True' otherwise:
312326* 'NotAssigned'
313327
314328prop> isPrint c == Data.Char.isPrint c
329+
330+ @since 0.3.0
315331-}
316332isPrint :: Char -> Bool
317333isPrint c = case generalCategory c of
@@ -339,6 +355,8 @@ following 'GeneralCategory's, or 'False' otherwise:
339355* 'OtherPunctuation'
340356
341357prop> isPunctuation c == Data.Char.isPunctuation c
358+
359+ @since 0.3.0
342360-}
343361isPunctuation :: Char -> Bool
344362isPunctuation c = case generalCategory c of
@@ -362,6 +380,8 @@ __Note:__ 'isWhiteSpace' is /not/ equivalent to 'Unicode.Char.General.Compat.isS
362380* @U+0085@ NEXT LINE (NEL)
363381* @U+2028@ LINE SEPARATOR
364382* @U+2029@ PARAGRAPH SEPARATOR
383+
384+ @since 0.3.0
365385-}
366386{-# INLINE isWhiteSpace #-}
367387isWhiteSpace :: Char -> Bool
@@ -377,6 +397,8 @@ following 'GeneralCategory's, or 'False' otherwise:
377397* 'ParagraphSeparator'
378398
379399prop> isSeparator c == Data.Char.isSeparator c
400+
401+ @since 0.3.0
380402-}
381403isSeparator :: Char -> Bool
382404isSeparator c = case generalCategory c of
@@ -395,6 +417,8 @@ following 'GeneralCategory's, or 'False' otherwise:
395417* 'OtherSymbol'
396418
397419prop> isSymbol c == Data.Char.isSymbol c
420+
421+ @since 0.3.0
398422-}
399423isSymbol :: Char -> Bool
400424isSymbol c = case generalCategory c of
0 commit comments