[GHC] #10735: Smooth out the differences between `compiler/utils/Pretty.hs` and `libraries/pretty`

GHC ghc-devs at haskell.org
Wed Aug 5 08:10:47 UTC 2015


#10735: Smooth out the differences between `compiler/utils/Pretty.hs` and
`libraries/pretty`
-------------------------------------+-------------------------------------
        Reporter:  thomie            |                   Owner:  thomie
            Type:  task              |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Compiler          |                 Version:  7.0.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #1062, #1176,     |  Differential Revisions:  Phab:D1130
  #7666, #8809                       |
-------------------------------------+-------------------------------------

Comment (by Thomas Miedema <thomasmiedema@…>):

 In [changeset:"926e4288c5aabb75addcdc4cbdc106e74c11162d/ghc" 926e428/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="926e4288c5aabb75addcdc4cbdc106e74c11162d"
 Pretty: use BangPatterns instead of manual unboxing Ints (#10735)

 Follow same style as libraries/pretty, although some of it is pretty
 archaic, and could be improved with BangPatterns:
    * `get w _ | w == 0 && False = undefined`
    * `mkNest k _ | k `seq` False = undefined`
 }}}

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


More information about the ghc-tickets mailing list