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

GHC ghc-devs at haskell.org
Thu Feb 4 03:17:51 UTC 2016


#11529: Show instance of Char should print literals for non-ascii printable
charcters
-------------------------------------+-------------------------------------
        Reporter:  nushio            |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:  invalid           |             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:                    |
-------------------------------------+-------------------------------------
Changes (by nushio):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Dear thomie, thank you for your comment. Yes, `-interactive-print` is a
 great feature! I regret that I was not able to search out this has been
 done for years.

 There are also several customized `show` function proposed, like `myShow`
 here. However, when I used it in some detail, I found that printing in
 Unicode has many corner cases that are more difficult than it seems ....
 As far as I have searched, I cannot find a unicode-printing function
 that satisfies
 `read . unicode_show == id` for sufficiently many types. For example,
 https://gist.github.com/nushio3/4a10f3c0092295696daf

 Thus, I decided to start a small package `-interactive-print`ing.
 http://hackage.haskell.org/package/unicode-show  I wish this helps many
 people enjoy Haskell!

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


More information about the ghc-tickets mailing list