Skip to content

Commit 78c0432

Browse files
committed
Fix up imports and extensions
1 parent 2c73b5a commit 78c0432

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Codec/Compression/Zlib/Stream.hsc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface #-}
1+
{-# LANGUAGE ForeignFunctionInterface, DeriveDataTypeable, DeriveGeneric #-}
22
-----------------------------------------------------------------------------
33
-- |
44
-- Copyright : (c) 2006-2014 Duncan Coutts
@@ -90,8 +90,8 @@ module Codec.Compression.Zlib.Stream (
9090
) where
9191

9292
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
9595
, withForeignPtr, touchForeignPtr, minusPtr )
9696
#if __GLASGOW_HASKELL__ >= 702
9797
import Foreign.ForeignPtr.Unsafe ( unsafeForeignPtrToPtr )
@@ -116,6 +116,8 @@ import Control.Monad.ST.Unsafe
116116
import Control.Monad.ST.Strict
117117
#endif
118118
import Control.Exception (assert)
119+
import Data.Typeable (Typeable)
120+
import GHC.Generics (Generic)
119121
#ifdef DEBUG
120122
import System.IO (hPutStrLn, stderr)
121123
#endif

zlib.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ library
3838
default-language: Haskell98
3939
else
4040
default-language: Haskell2010
41-
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns
41+
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
42+
DeriveDataTypeable, DeriveGeneric
4243
build-depends: base >= 3 && < 5,
4344
bytestring >= 0.9 && < 0.12
4445
includes: zlib.h

0 commit comments

Comments
 (0)