isSpace is:exact

Returns True for any Unicode space character, and the control characters \t, \n, \r, \f, \v.
Fast predicate for matching ASCII space characters. Note: This predicate only gives correct answers for the ASCII encoding. For instance, it does not recognise U+00A0 (non-breaking space) as a space character, even though it is a valid ISO-8859-15 byte. For a Unicode-aware and only slightly slower predicate, use isSpace
Fast Word8 predicate for matching ASCII space characters
isSpace w = w == 32 || w - 9 <= 4
Selects Unicode space characters (general category Space), and the control characters \t, \n, \r, \f, \v. Note: isSpace is not equivalent to isWhiteSpace. isWhiteSpace selects the same characters from isSpace plus the following:
  • U+0085 NEXT LINE (NEL)
  • U+2028 LINE SEPARATOR
  • U+2029 PARAGRAPH SEPARATOR
isSpace c == Data.Char.isSpace c