[commit: packages/bytestring] ghc-head: Implement (lazy) byteStringHexFixed (2cafebf)

git at git.haskell.org git at git.haskell.org
Thu Aug 29 10:19:14 CEST 2013


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

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/bytestring.git;a=commit;h=2cafebf7df47e1c6b6ccc764f22f5988a4e1a18e

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

commit 2cafebf7df47e1c6b6ccc764f22f5988a4e1a18e
Author: Leon P Smith <leon at melding-monads.com>
Date:   Fri Mar 8 06:05:27 2013 -0500

    Implement (lazy) byteStringHexFixed
    
    These identifiers are exported from the bytestring-builder shipped
    with GHC 7.6, but these functions were renamed so a simple module
    export does not suffice.


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

2cafebf7df47e1c6b6ccc764f22f5988a4e1a18e
 Data/ByteString/Lazy/Builder/ASCII.hs |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Data/ByteString/Lazy/Builder/ASCII.hs b/Data/ByteString/Lazy/Builder/ASCII.hs
index a27d66c..5b1644f 100644
--- a/Data/ByteString/Lazy/Builder/ASCII.hs
+++ b/Data/ByteString/Lazy/Builder/ASCII.hs
@@ -9,6 +9,16 @@
 --
 module Data.ByteString.Lazy.Builder.ASCII (
   module Data.ByteString.Builder
+, byteStringHexFixed
+, lazyByteStringHexFixed
 ) where
 
 import Data.ByteString.Builder
+import qualified Data.ByteString      as S
+import qualified Data.ByteString.Lazy as L
+
+byteStringHexFixed :: S.ByteString -> Builder
+byteStringHexFixed = byteStringHex
+
+lazyByteStringHexFixed :: L.ByteString -> Builder
+lazyByteStringHexFixed = lazyByteStringHex





More information about the ghc-commits mailing list