[commit: bytestring] master: Fix some more import warnings (e14c4a7)
Ian Lynagh
igloo at earth.li
Wed Feb 22 21:58:40 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/e14c4a70cfe8d206b34dd0fefdc70646e7a2f326
>---------------------------------------------------------------
commit e14c4a70cfe8d206b34dd0fefdc70646e7a2f326
Author: Duncan Coutts <duncan at community.haskell.org>
Date: Thu Nov 17 00:59:28 2011 +0000
Fix some more import warnings
>---------------------------------------------------------------
.../builder/Data/ByteString/Lazy/Builder/Tests.hs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/builder/Data/ByteString/Lazy/Builder/Tests.hs b/tests/builder/Data/ByteString/Lazy/Builder/Tests.hs
index 2b6e67a..d26bccb 100644
--- a/tests/builder/Data/ByteString/Lazy/Builder/Tests.hs
+++ b/tests/builder/Data/ByteString/Lazy/Builder/Tests.hs
@@ -18,7 +18,8 @@ import Control.Applicative
import Control.Monad.State
import Control.Monad.Writer
-import Foreign
+import Foreign (Word, Word8, Word64, minusPtr)
+import System.IO.Unsafe (unsafePerformIO)
import Data.Char (ord, chr)
import qualified Data.DList as D
@@ -39,7 +40,10 @@ import Data.ByteString.Lazy.Builder.BasicEncoding.TestUtils
import Numeric (readHex)
import Control.Exception (evaluate)
-import System.IO
+import System.IO (openTempFile, hPutStr, hClose, hSetBinaryMode)
+#if MIN_VERSION_base(4,2,0)
+import System.IO (hSetEncoding, utf8)
+#endif
import System.Directory
import TestFramework
More information about the Cvs-libraries
mailing list