[GHC] #14005: Explore moving from pretty to prettyprinter

GHC ghc-devs at haskell.org
Fri Jul 21 17:58:36 UTC 2017


#14005: Explore moving from pretty to prettyprinter
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3650
       Wiki Page:                    |
  wiki:PrettyErrors                  |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 The problem appears to be the encoding of the string literal itself in the
 object code. Previously we would find this,
 {{{
                                                 starts here
 0531220   -   b   o   o   t   -   8   .   3  \0 300 200   g   h   c   p
 0531240   k   g 300 200  \0   d   b   M   o   d   u   l   e   U   n   i
                          ^ ends here
 }}}
 Now we find this,
 {{{
                                         starts here
 0534520   o   o   t   -   8   .   3  \0 303 200 200   g   h   c   p   k
 0534540   g 303 200 200  \0   d   b   M   o   d   u   l   e   U   n   i
                          ^ ends here
 }}}

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


More information about the ghc-tickets mailing list