[commit: ghc] master: Add non-ASCII isLetter True example (6139f7f)

git at git.haskell.org git at git.haskell.org
Wed Sep 13 15:36:32 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6139f7f7c1e95ffda13d8c5c05a3db1cc35e40bb/ghc

>---------------------------------------------------------------

commit 6139f7f7c1e95ffda13d8c5c05a3db1cc35e40bb
Author: Chris Martin <ch.martin at gmail.com>
Date:   Wed Sep 6 22:36:03 2017 -0400

    Add non-ASCII isLetter True example


>---------------------------------------------------------------

6139f7f7c1e95ffda13d8c5c05a3db1cc35e40bb
 libraries/base/Data/Char.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libraries/base/Data/Char.hs b/libraries/base/Data/Char.hs
index 69e4db7..ac06647 100644
--- a/libraries/base/Data/Char.hs
+++ b/libraries/base/Data/Char.hs
@@ -132,6 +132,8 @@ digitToInt c
 -- True
 -- >>> isLetter 'A'
 -- True
+-- >>> isLetter 'λ'
+-- True
 -- >>> isLetter '0'
 -- False
 -- >>> isLetter '%'



More information about the ghc-commits mailing list