Browse files

Use explicit imports from Foreign module

  • Loading branch information...
1 parent ce5c830 commit 9a2c81263fb4766b39c033035ae8a27b3403a646 @meiersi committed Mar 11, 2013
View
5 Blaze/ByteString/Builder/ByteString.hs
@@ -37,8 +37,8 @@ module Blaze.ByteString.Builder.ByteString
import Blaze.ByteString.Builder.Internal hiding (insertByteString)
import qualified Blaze.ByteString.Builder.Internal as I (insertByteString)
-import Foreign
-import Foreign.ForeignPtr.Unsafe
+import Foreign (withForeignPtr, touchForeignPtr, copyBytes, plusPtr, minusPtr)
+import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import Data.Monoid
import qualified Data.ByteString as S
@@ -49,7 +49,6 @@ import qualified Data.ByteString.Base as S
import qualified Data.ByteString.Lazy.Base as L -- FIXME: check if this is the right module
#else
import qualified Data.ByteString.Internal as S
-import qualified Data.ByteString.Lazy.Internal as L
#endif
View
4 Blaze/ByteString/Builder/Internal.hs
@@ -49,8 +49,8 @@ module Blaze.ByteString.Builder.Internal (
, defaultMaximalCopySize
) where
-import Foreign
-import Foreign.ForeignPtr.Unsafe
+import Foreign (withForeignPtr, sizeOf, copyBytes, plusPtr, minusPtr)
+import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import Control.Monad (unless)
View
4 Blaze/ByteString/Builder/Internal/Buffer.hs
@@ -41,8 +41,8 @@ module Blaze.ByteString.Builder.Internal.Buffer (
) where
import Prelude
-import Foreign
-import Foreign.ForeignPtr.Unsafe
+import Foreign (Word8, ForeignPtr, Ptr, plusPtr, minusPtr)
+import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import qualified Data.ByteString as S

0 comments on commit 9a2c812

Please sign in to comment.