[project @ 2004-11-12 15:14:17 by simonmar]
authorsimonmar <unknown>
Fri, 12 Nov 2004 15:14:17 +0000 (15:14 +0000)
committersimonmar <unknown>
Fri, 12 Nov 2004 15:14:17 +0000 (15:14 +0000)
Note Haskell 98 divergence in isAlpha.

GHC/Unicode.hs

index a98ce24..5b7d47b 100644 (file)
@@ -77,6 +77,15 @@ isUpper                 :: Char -> Bool
 isLower                 :: Char -> Bool
 
 -- | Selects alphabetic Unicode characters (letters).
+--
+-- Note: the Haskell 98 definition of 'isAlpha' is:
+--
+-- >   isAlpha c = isUpper c || isLower c
+--
+-- the implementation here diverges from the Haskell 98
+-- definition in the sense that Unicode alphabetic characters which
+-- are neither upper nor lower case will still be identified as
+-- alphabetic by 'isAlpha'.
 isAlpha                 :: Char -> Bool
 
 -- | Selects alphabetic or numeric digit Unicode characters.