X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FUnicode.hs;h=73e453a117a0a728f96688247fb808a872478035;hb=0058f13e35b873d61929a75118a8b38e78ca4e7e;hp=d90c96e3dd3a6aa9809cebd77ab0dce21c34a9db;hpb=59d4a6667ff3b378a008858952b82f49d8104f74;p=ghc-base.git diff --git a/GHC/Unicode.hs b/GHC/Unicode.hs index d90c96e..73e453a 100644 --- a/GHC/Unicode.hs +++ b/GHC/Unicode.hs @@ -63,8 +63,8 @@ isControl :: Char -> Bool -- (letters, numbers, marks, punctuation, symbols and spaces). isPrint :: Char -> Bool --- | Selects white-space characters in the Latin-1 range. --- (In Unicode terms, this includes spaces and some control characters.) +-- | Returns 'True' for any Unicode space character, and the control +-- characters @\t@, @\\n@, @\\r@, @\\f@, @\\v@. isSpace :: Char -> Bool -- isSpace includes non-breaking space -- Done with explicit equalities both for efficiency, and to avoid a tiresome