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

GHC ghc-devs at haskell.org
Thu Sep 12 11:10:41 CEST 2013


#8274: Core pretty-printer doesn't print # on unboxed literals
------------------------------------+-------------------------------------
       Reporter:  jstolarek         |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.7
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  Other
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 I just noticed that Core pretty printer produces something like this (this
 is part of expected output for T3772 in testsuite):

 {{{
     case GHC.Prim.<=# n# 0 of _ {
       __DEFAULT -> xs n#;
       1 -> GHC.Tuple.()
     }
 }}}

 Both `0` (in scrutinee) and `1` (one of branch alternatives) are unboxed
 values, so they should be printed as `0#` and `1#` respectively. I haven't
 checked whether unboxed literals of other types (`Word`, `Double`,
 `Float`) are printed in that way, but I would guess that yes.

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



More information about the ghc-tickets mailing list