1
- {-# LANGUAGE ForeignFunctionInterface #-}
1
+ {-# LANGUAGE ForeignFunctionInterface, DeriveDataTypeable, DeriveGeneric #-}
2
2
-----------------------------------------------------------------------------
3
3
-- |
4
4
-- Copyright : (c) 2006-2014 Duncan Coutts
@@ -90,8 +90,8 @@ module Codec.Compression.Zlib.Stream (
90
90
) where
91
91
92
92
import Foreign
93
- ( Word8 , Ptr , nullPtr , plusPtr , peekByteOff , pokeByteOff , mallocBytes
94
- , ForeignPtr , FinalizerPtr , newForeignPtr_ , addForeignPtrFinalizer
93
+ ( Word8 , Ptr , nullPtr , plusPtr , peekByteOff , pokeByteOff
94
+ , ForeignPtr , FinalizerPtr , mallocForeignPtrBytes , addForeignPtrFinalizer
95
95
, withForeignPtr , touchForeignPtr , minusPtr )
96
96
#if __GLASGOW_HASKELL__ >= 702
97
97
import Foreign.ForeignPtr.Unsafe ( unsafeForeignPtrToPtr )
@@ -116,6 +116,8 @@ import Control.Monad.ST.Unsafe
116
116
import Control.Monad.ST.Strict
117
117
#endif
118
118
import Control.Exception (assert )
119
+ import Data.Typeable (Typeable )
120
+ import GHC.Generics (Generic )
119
121
#ifdef DEBUG
120
122
import System.IO (hPutStrLn , stderr )
121
123
#endif
0 commit comments