Fixes isAlphaNum re. isAlpha/isNumber and doc fix (trac issue #10412)
authorARJANEN Loïc Jean David <arjanen.loic@gmail.com>
Fri, 20 Apr 2018 00:48:28 +0000 (20:48 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 20 Apr 2018 00:48:44 +0000 (20:48 -0400)
commita26983a3aef25b3fa5f66b4d68ea7240a6dd1543
treeb70e53c55424f1cc884bb0d566aae77dd7013339
parent257c13d86db0a9ed540287127fd1c79abacf857e
Fixes isAlphaNum re. isAlpha/isNumber and doc fix (trac issue #10412)

Corrects the inconsistency between Data.Char.isAlphaNum,
Data.Char.isAlpha and Data.Char.isNumber. Indeed, isAlphaNum was
returning True not only when isAlpha or isNumber returned True but
also when isMark did. The selectors for the Mn, Mc and Me general
categories where removed from the macro generating u_iswalnum in
ubconfc.

Also, Data.Char.isAlphaNum's documentation was changed to state that
isAlphaNum returns true not only for Unicode number digits but for
Unicode numbers in general in Unicode.hs.

Signed-off-by: ARJANEN Loïc Jean David <arjanen.loic@gmail.com>
Reviewers: hvr, ekmett, lelf, bgamari

Reviewed By: bgamari

Subscribers: thomie, carter

GHC Trac Issues: #10412

Differential Revision: https://phabricator.haskell.org/D4593
libraries/base/GHC/Unicode.hs
libraries/base/cbits/ubconfc