Re: Unicode, strings, and Show

2016-03-31 Thread Manuel M T Chakravarty
> Brandon Allbery : > > On Wed, Mar 30, 2016 at 9:50 PM, Manuel M T Chakravarty > wrote: > Firstly, we have > > isPrint :: Char -> Bool > > Are you saying that this type is wrong? > > Secondly, how often do you feed

Re: Unicode, strings, and Show

2016-03-30 Thread Carter Schonwald
One point in the design space that the swift language does, which seems intersting at least to me, is to have the notion of a character be backed by a Unicode grapheme cluster, which is a character like sequence of Unicode code points. Would library support for this at all help this discussion or

Re: Unicode, strings, and Show

2016-03-30 Thread Brandon Allbery
On Wed, Mar 30, 2016 at 9:50 PM, Manuel M T Chakravarty < c...@justtesting.org> wrote: > Firstly, we have > > isPrint :: Char -> Bool > > Are you saying that this type is wrong? > > Secondly, how often do you feed the output of ’show’ to ’read’ in another > locale versus how often is everybody

Re: Unicode, strings, and Show

2016-03-30 Thread Brandon Allbery
On Wed, Mar 30, 2016 at 9:16 PM, Manuel M T Chakravarty < c...@justtesting.org> wrote: > Thank you for all the replies and especially pointing to this ticket. > > I think, the discussion on this ticket is actually misleading and there is > a simple solution, which I added as a comment. > That is

Re: Unicode, strings, and Show

2016-03-30 Thread Manuel M T Chakravarty
Thank you for all the replies and especially pointing to this ticket. I think, the discussion on this ticket is actually misleading and there is a simple solution, which I added as a comment. Manuel > Thomas Miedema : > > > It would be great if someone could create a

Re: Unicode, strings, and Show

2016-03-30 Thread Ben Gamari
Thomas Miedema writes: >> It would be great if someone could create a Trac ticket > > > Existing ticket: https://ghc.haskell.org/trac/ghc/ticket/11529 ("Show > instance of Char should print literals for non-ascii printable charcters") Thanks Thomas! I've added a

Re: Unicode, strings, and Show

2016-03-30 Thread Thomas Miedema
> It would be great if someone could create a Trac ticket Existing ticket: https://ghc.haskell.org/trac/ghc/ticket/11529 ("Show instance of Char should print literals for non-ascii printable charcters") ___ ghc-devs mailing list ghc-devs@haskell.org

Re: Unicode, strings, and Show

2016-03-30 Thread Ben Gamari
Evan Laforge writes: > There was recently a discussion about it, search for subject "Can we > improve Show instance for non-ascii charcters?" > > You can read for yourself but my impression was that people were > generally favorable, but had some backward compatibility

Re: Unicode, strings, and Show

2016-03-29 Thread Evan Laforge
There was recently a discussion about it, search for subject "Can we improve Show instance for non-ascii charcters?" You can read for yourself but my impression was that people were generally favorable, but had some backward compatibility worries, and came up with some workarounds, but no one

Unicode, strings, and Show

2016-03-29 Thread Manuel M T Chakravarty
Why are we doing this? GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help Prelude> "文字" "\25991\23383" Prelude> After all, we don’t print ’a’ as ’\97’. Manuel ___ ghc-devs mailing list ghc-devs@haskell.org