[commit: packages/bytestring] ghc-head: Make Data.ByteString.Short work on several ghc versions (eaa31e0)

git at git.haskell.org git
Fri Oct 4 08:28:07 UTC 2013


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

On branch  : ghc-head
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/eaa31e02353b1a2de999d325d73070ce9bb4d001

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

commit eaa31e02353b1a2de999d325d73070ce9bb4d001
Author: Duncan Coutts <duncan at community.haskell.org>
Date:   Wed Oct 2 23:44:52 2013 +0100

    Make Data.ByteString.Short work on several ghc versions
    
    Older GHC do not keep the length of the ByteArray# in a useful way so
    we have to store it separately.
    
    Adjust the implementations to use primop wrappers with ST or IO rather
    than direct primops and State#.
    
    Check core for the important functions and made a few adjustments.


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

eaa31e02353b1a2de999d325d73070ce9bb4d001
 Data/ByteString/Short.hs          |    6 +-
 Data/ByteString/Short/Internal.hs |  456 +++++++++++++++++++++++++------------
 cbits/fpstring.c                  |    5 +-
 3 files changed, 317 insertions(+), 150 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 eaa31e02353b1a2de999d325d73070ce9bb4d001



More information about the ghc-commits mailing list