Skip to content

Commit d84fcbb

Browse files
committed
Fix -Wderiving-typeable
1 parent 96e1f88 commit d84fcbb

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

zlib/Codec/Compression/Zlib/Internal.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE CPP, RankNTypes, DeriveDataTypeable, BangPatterns #-}
1+
{-# LANGUAGE CPP, RankNTypes, BangPatterns #-}
22
{-# LANGUAGE DeriveGeneric #-}
33
{-# LANGUAGE Trustworthy #-}
44
-----------------------------------------------------------------------------
@@ -80,7 +80,6 @@ import Control.Exception (Exception, throw, assert)
8080
import Control.Monad.ST.Lazy hiding (stToIO)
8181
import Control.Monad.ST.Strict (stToIO)
8282
import qualified Control.Monad.ST.Unsafe as Unsafe (unsafeIOToST)
83-
import Data.Typeable (Typeable)
8483
import GHC.Generics (Generic)
8584
import Data.Bits (toIntegralSized)
8685
import qualified Data.ByteString.Lazy as L
@@ -118,7 +117,6 @@ data CompressParams = CompressParams {
118117
( Eq -- ^ @since 0.7.0.0
119118
, Ord -- ^ @since 0.7.0.0
120119
, Show
121-
, Typeable -- ^ @since 0.7.0.0
122120
, Generic -- ^ @since 0.7.0.0
123121
)
124122

@@ -150,7 +148,6 @@ data DecompressParams = DecompressParams {
150148
( Eq -- ^ @since 0.7.0.0
151149
, Ord -- ^ @since 0.7.0.0
152150
, Show
153-
, Typeable -- ^ @since 0.7.0.0
154151
, Generic -- ^ @since 0.7.0.0
155152
)
156153

@@ -250,7 +247,6 @@ data DecompressError =
250247
deriving
251248
( Eq
252249
, Ord -- ^ @since 0.7.0.0
253-
, Typeable
254250
, Generic -- ^ @since 0.7.0.0
255251
)
256252

zlib/Codec/Compression/Zlib/Stream.hsc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE CPP, ForeignFunctionInterface, DeriveDataTypeable #-}
1+
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
22
{-# LANGUAGE DeriveGeneric #-}
33
{-# LANGUAGE CApiFFI #-}
44
-----------------------------------------------------------------------------
@@ -121,7 +121,6 @@ import Control.Exception (assert)
121121
import Data.Bits (toIntegralSized)
122122
import Data.Coerce (coerce)
123123
import Data.Maybe (fromMaybe)
124-
import Data.Typeable (Typeable)
125124
import GHC.Generics (Generic)
126125
#ifdef DEBUG
127126
import System.IO (hPutStrLn, stderr)
@@ -580,7 +579,7 @@ fromFlush Block = #{const Z_BLOCK}
580579
-- variations.
581580
--
582581
data Format = GZip | Zlib | Raw | GZipOrZlib
583-
deriving (Eq, Ord, Enum, Bounded, Show, Typeable
582+
deriving (Eq, Ord, Enum, Bounded, Show
584583
, Generic
585584
)
586585

@@ -622,7 +621,7 @@ formatSupportsDictionary _ = False
622621
-- | The compression method
623622
--
624623
data Method = Deflated
625-
deriving (Eq, Ord, Enum, Bounded, Show, Typeable
624+
deriving (Eq, Ord, Enum, Bounded, Show
626625
, Generic
627626
)
628627

@@ -645,7 +644,6 @@ newtype CompressionLevel = CompressionLevel Int
645644
( Eq
646645
, Ord -- ^ @since 0.7.0.0
647646
, Show
648-
, Typeable
649647
, Generic
650648
)
651649

@@ -705,7 +703,6 @@ newtype WindowBits = WindowBits Int
705703
( Eq
706704
, Ord
707705
, Show
708-
, Typeable
709706
, Generic
710707
)
711708

@@ -764,7 +761,6 @@ newtype MemoryLevel = MemoryLevel Int
764761
( Eq
765762
, Ord -- ^ @since 0.7.0.0
766763
, Show
767-
, Typeable
768764
, Generic
769765
)
770766

@@ -812,7 +808,7 @@ data CompressionStrategy =
812808
-- ^ @since 0.7.0.0
813809
| Fixed
814810
-- ^ @since 0.7.0.0
815-
deriving (Eq, Ord, Enum, Bounded, Show, Typeable
811+
deriving (Eq, Ord, Enum, Bounded, Show
816812
, Generic
817813
)
818814

zlib/zlib.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ library
8080

8181
default-language: Haskell2010
8282

83-
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
84-
DeriveDataTypeable
83+
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns
8584
other-extensions: DeriveGeneric
8685
other-extensions: CApiFFI
8786

0 commit comments

Comments
 (0)