[commit: packages/binary] master: Import Data.ByteString.Short conditionally (61e1b4a)

git at git.haskell.org git at git.haskell.org
Sat Feb 4 21:18:04 UTC 2017


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

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/61e1b4a0b8a3d4434562b30a6ae07cacbbb3622d

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

commit 61e1b4a0b8a3d4434562b30a6ae07cacbbb3622d
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date:   Thu Jul 7 09:47:02 2016 +0200

    Import Data.ByteString.Short conditionally
    
    Fixes #121.


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

61e1b4a0b8a3d4434562b30a6ae07cacbbb3622d
 src/Data/Binary/Builder.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Data/Binary/Builder.hs b/src/Data/Binary/Builder.hs
index 5cf86b1..1f20496 100644
--- a/src/Data/Binary/Builder.hs
+++ b/src/Data/Binary/Builder.hs
@@ -68,7 +68,11 @@ module Data.Binary.Builder (
 
 import qualified Data.ByteString      as S
 import qualified Data.ByteString.Lazy as L
+
+#if MIN_VERSION_bytestring(0,10,4)
 import qualified Data.ByteString.Short as T
+#endif
+
 import qualified Data.ByteString.Builder as B
 import qualified Data.ByteString.Builder.Prim as Prim
 import Data.ByteString.Builder ( Builder, toLazyByteString )



More information about the ghc-commits mailing list