[commit: packages/bytestring] master, revert-46-patch-1, wip/nix-local-build: Radically reduce #ifdefs (9306e29)

git at git.haskell.org git at git.haskell.org
Tue May 3 22:43:32 UTC 2016


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

On branches: master,revert-46-patch-1,wip/nix-local-build
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/9306e2987b6ad889ddfc259b11e918a7828a35c1

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

commit 9306e2987b6ad889ddfc259b11e918a7828a35c1
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sun Oct 18 10:35:07 2015 +0200

    Radically reduce #ifdefs
    
    This assumes that __GLASGOW_HASKELL__ is 612 or later, as well as
    `base >= 4.2` (c.f. `bytestring.cabal`).


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

9306e2987b6ad889ddfc259b11e918a7828a35c1
 Data/ByteString.hs                                 | 152 +--------------------
 Data/ByteString/Builder/ASCII.hs                   |   4 +-
 Data/ByteString/Builder/Internal.hs                |  10 +-
 .../Builder/Prim/Internal/UncheckedShifts.hs       |  13 +-
 Data/ByteString/Char8.hs                           |  10 --
 Data/ByteString/Internal.hs                        |  95 +------------
 Data/ByteString/Lazy.hs                            |  12 --
 Data/ByteString/Lazy/Char8.hs                      |   5 -
 Data/ByteString/Lazy/Internal.hs                   |  24 +---
 Data/ByteString/Short/Internal.hs                  |   4 -
 Data/ByteString/Unsafe.hs                          |  22 ---
 tests/builder/Data/ByteString/Builder/Tests.hs     |   6 -
 12 files changed, 17 insertions(+), 340 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 9306e2987b6ad889ddfc259b11e918a7828a35c1


More information about the ghc-commits mailing list