Skip to content

Commit

Permalink
Fix GHC 7.6 FFI breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
bos committed Aug 30, 2012
1 parent fcccbcd commit 1f86b8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Codec/Compression/Snappy.hs
Expand Up @@ -24,7 +24,7 @@ module Codec.Compression.Snappy
import Codec.Compression.Snappy.Internal (check, maxCompressedLength) import Codec.Compression.Snappy.Internal (check, maxCompressedLength)
import Data.ByteString.Internal (ByteString(..), mallocByteString) import Data.ByteString.Internal (ByteString(..), mallocByteString)
import Data.Word (Word8, Word32) import Data.Word (Word8, Word32)
import Foreign.C.Types (CInt, CSize) import Foreign.C.Types (CInt(..), CSize(..))
import Foreign.ForeignPtr (withForeignPtr) import Foreign.ForeignPtr (withForeignPtr)
import Foreign.Marshal.Alloc (alloca) import Foreign.Marshal.Alloc (alloca)
import Foreign.Marshal.Utils (with) import Foreign.Marshal.Utils (with)
Expand Down
2 changes: 1 addition & 1 deletion Codec/Compression/Snappy/Internal.hs
Expand Up @@ -22,7 +22,7 @@ module Codec.Compression.Snappy.Internal
) where ) where


import Control.Monad (when) import Control.Monad (when)
import Foreign.C.Types (CSize) import Foreign.C.Types (CSize(..))


maxCompressedLength :: Int -> Int maxCompressedLength :: Int -> Int
maxCompressedLength = fromIntegral . c_MaxCompressedLength . fromIntegral maxCompressedLength = fromIntegral . c_MaxCompressedLength . fromIntegral
Expand Down
2 changes: 1 addition & 1 deletion Codec/Compression/Snappy/Lazy.hsc
Expand Up @@ -34,7 +34,7 @@ import Control.Exception (bracket)
import Data.ByteString.Internal hiding (ByteString) import Data.ByteString.Internal hiding (ByteString)
import Data.ByteString.Lazy.Internal (ByteString(..)) import Data.ByteString.Lazy.Internal (ByteString(..))
import Data.Word (Word8, Word32) import Data.Word (Word8, Word32)
import Foreign.C.Types (CInt, CSize) import Foreign.C.Types (CInt(..), CSize(..))
import Foreign.ForeignPtr (touchForeignPtr, withForeignPtr) import Foreign.ForeignPtr (touchForeignPtr, withForeignPtr)
import Foreign.Marshal.Alloc (alloca) import Foreign.Marshal.Alloc (alloca)
import Foreign.Marshal.Array (withArray) import Foreign.Marshal.Array (withArray)
Expand Down

0 comments on commit 1f86b8f

Please sign in to comment.