[commit: packages/bytestring] master, revert-46-patch-1, wip/nix-local-build: Fix build breakage. (de7331e)

git at git.haskell.org git at git.haskell.org
Tue May 3 22:43:38 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/de7331e232c7502629a18f44a44c1f909ccccc39

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

commit de7331e232c7502629a18f44a44c1f909ccccc39
Author: Sean <burton.seanr at gmail.com>
Date:   Mon Nov 2 15:58:01 2015 +0000

    Fix build breakage.


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

de7331e232c7502629a18f44a44c1f909ccccc39
 Data/ByteString.hs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Data/ByteString.hs b/Data/ByteString.hs
index 9086f82..22afdf0 100644
--- a/Data/ByteString.hs
+++ b/Data/ByteString.hs
@@ -279,6 +279,11 @@ import GHC.Prim                 (Word#)
 import GHC.Base                 (build)
 import GHC.Word hiding (Word8)
 
+#if !(MIN_VERSION_BASE(4,7,0))
+finiteBitSize :: Bits a => a -> Int
+finiteBitSize = bitSize
+#endif
+
 -- -----------------------------------------------------------------------------
 -- Introducing and eliminating 'ByteString's
 



More information about the ghc-commits mailing list