[GHC] #7995: module Pretty's "text/str" rule doesn't fire

GHC ghc-devs at haskell.org
Mon Jun 24 19:19:17 CEST 2013


#7995: module Pretty's "text/str" rule doesn't fire
---------------------------------------------+------------------------------
  Reporter:  parcs                           |          Owner:                  
      Type:  bug                             |         Status:  closed          
  Priority:  normal                          |      Milestone:                  
 Component:  Compiler                        |        Version:  7.7             
Resolution:  fixed                           |       Keywords:                  
        Os:  Unknown/Multiple                |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown                    |     Difficulty:  Unknown         
  Testcase:  simplCore/should_compile/T7995  |      Blockedby:                  
  Blocking:                                  |        Related:                  
---------------------------------------------+------------------------------
Changes (by simonpj):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => fixed
  * testcase:  => simplCore/should_compile/T7995


Comment:

 OK, I've fixed this. I'm not sure it's really worth adding a test but I
 have done so anyway.

 Good catch... knowing that this works should let us replace
 {{{
   ptext (sLit "foo")
 }}}
 with the much tidier
 {{{
   text "foo"
 }}}
 without increasing code size or execution time.

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



More information about the ghc-tickets mailing list