[GHC] #8274: Core pretty-printer doesn't print # on unboxed literals

GHC ghc-devs at haskell.org
Mon Feb 23 20:42:45 UTC 2015


#8274: Core pretty-printer doesn't print # on unboxed literals
-------------------------------------+-------------------------------------
        Reporter:  jstolarek         |                   Owner:
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Compiler          |                 Version:  7.7
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Other             |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:  #10104            |  simplCore/should_compile/T8274
                                     |                Blocking:
                                     |  Differential Revisions:  Phab:D678
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => patch
 * testcase:   => simplCore/should_compile/T8274
 * differential:   => Phab:D678
 * type:  feature request => bug
 * milestone:   => 7.12.1


Comment:

 There is one small design decision to be made, and that is how to pretty
 print `Integer`s.

 Currently, unboxed `Int`s are printed as is, and `Integer`s are prepended
 with `__integer`.

 In my patch, I changed this to: unboxed `Int`s are appended with `'#'`,
 and `Integer`s are printed as is.

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


More information about the ghc-tickets mailing list