diff --git a/Bundled/SHA256.hs b/Bundled/SHA256.hs
--- a/Bundled/SHA256.hs
+++ b/Bundled/SHA256.hs
@@ -6,7 +6,13 @@
 
 module Bundled.SHA256 ( sha256 ) where
 
-import Foreign
+#if __GLASGOW_HASKELL__ >= 706
+import Foreign ( Ptr, Word8 )
+import System.IO.Unsafe( unsafePerformIO )
+#else
+import Foreign ( Ptr, Word8, unsafePerformIO )
+#endif
+
 import Foreign.C.Types
 import Data.ByteString.Unsafe (unsafeUseAsCStringLen)
 import qualified Data.ByteString.Internal as BSI
diff --git a/hashed-storage.cabal b/hashed-storage.cabal
--- a/hashed-storage.cabal
+++ b/hashed-storage.cabal
@@ -1,5 +1,5 @@
 name:          hashed-storage
-version:       0.5.10
+version:       0.5.11
 synopsis:      Hashed file storage support code.
 
 description:   Support code for reading and manipulating hashed file storage
