[commit: packages/binary] master: Use explicit import-list for `GHC.Base` import (37daf32)

git at git.haskell.org git at git.haskell.org
Sun Dec 14 17:55:19 UTC 2014


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

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/37daf32fbd3b9882b83aef07e0f4177a29d7a71e

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

commit 37daf32fbd3b9882b83aef07e0f4177a29d7a71e
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Wed Sep 17 22:48:38 2014 +0200

    Use explicit import-list for `GHC.Base` import
    
    `base` is currently being restructured in GHC HEAD which will very likely
    break this unqualified `GHC.Base` import. So this simple change will make
    that import statement future-proof.


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

37daf32fbd3b9882b83aef07e0f4177a29d7a71e
 src/Data/Binary/Builder/Base.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Data/Binary/Builder/Base.hs b/src/Data/Binary/Builder/Base.hs
index 6dd5b75..897aa2b 100644
--- a/src/Data/Binary/Builder/Base.hs
+++ b/src/Data/Binary/Builder/Base.hs
@@ -81,7 +81,7 @@ import qualified Data.ByteString.Lazy.Internal as L
 #endif
 
 #if defined(__GLASGOW_HASKELL__) && !defined(__HADDOCK__)
-import GHC.Base
+import GHC.Base (ord,Int(..),uncheckedShiftRL#)
 import GHC.Word (Word32(..),Word16(..),Word64(..))
 # if WORD_SIZE_IN_BITS < 64
 import GHC.Word (uncheckedShiftRL64#)



More information about the ghc-commits mailing list