[commit: ghc] master: Pretty: use BangPatterns instead of manual unboxing Ints (#10735) (926e428)

git at git.haskell.org git at git.haskell.org
Wed Aug 5 08:11:14 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/926e4288c5aabb75addcdc4cbdc106e74c11162d/ghc

>---------------------------------------------------------------

commit 926e4288c5aabb75addcdc4cbdc106e74c11162d
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Mon Aug 3 20:16:58 2015 +0200

    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`


>---------------------------------------------------------------

926e4288c5aabb75addcdc4cbdc106e74c11162d
 compiler/utils/BufWrite.hs |   8 +--
 compiler/utils/Pretty.hs   | 168 ++++++++++++++++++++++++---------------------
 2 files changed, 91 insertions(+), 85 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 926e4288c5aabb75addcdc4cbdc106e74c11162d


More information about the ghc-commits mailing list