Pretty: use BangPatterns instead of manual unboxing Ints (#10735)
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 3 Aug 2015 18:16:58 +0000 (20:16 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Wed, 5 Aug 2015 08:10:33 +0000 (10:10 +0200)
commit926e4288c5aabb75addcdc4cbdc106e74c11162d
tree898f838e1e89996abe999bc90db949b0f06ac18b
parent6f6d082124b24bd8437f95d99a8fd8844a0f6cd8
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`
compiler/utils/BufWrite.hs
compiler/utils/Pretty.hs