[GHC] #11529: Show instance of Char should print literals for non-ascii printable charcters

GHC ghc-devs at haskell.org
Fri Apr 8 02:15:54 UTC 2016


#11529: Show instance of Char should print literals for non-ascii printable
charcters
-------------------------------------+-------------------------------------
        Reporter:  nushio            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nushio):

 I believe there is an ambiguity in the specification
 {{{
 showLitChar :: Char -> ShowS
     "Convert a character to a string using only printable characters
 }}}
 whether "printable" means ASCII printable or Unicode printable. How shall
 we solve the ambiguity?

 By the way, I use `map fromEnum` to investigate the content of the string
 when lack of appropriate font or when I am debugging a pretty printer.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11529#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list