@@ -543,7 +543,7 @@ fromFlush Finish = #{const Z_FINISH}
543
543
-- variations.
544
544
--
545
545
data Format = GZip | Zlib | Raw | GZipOrZlib
546
- deriving Eq
546
+ deriving ( Eq , Ord , Enum , Bounded , Show , Typeable , Generic )
547
547
548
548
{-# DEPRECATED GZip "Use gzipFormat. Format constructors will be hidden in version 0.7" #-}
549
549
{-# DEPRECATED Zlib "Use zlibFormat. Format constructors will be hidden in version 0.7" #-}
@@ -588,6 +588,7 @@ formatSupportsDictionary _ = False
588
588
-- | The compression method
589
589
--
590
590
data Method = Deflated
591
+ deriving (Eq , Ord , Enum , Bounded , Show , Typeable , Generic )
591
592
592
593
{-# DEPRECATED Deflated "Use deflateMethod. Method constructors will be hidden in version 0.7" #-}
593
594
@@ -611,6 +612,7 @@ data CompressionLevel =
611
612
| BestSpeed
612
613
| BestCompression
613
614
| CompressionLevel Int
615
+ deriving (Eq , Show , Typeable , Generic )
614
616
615
617
{-# DEPRECATED DefaultCompression "Use defaultCompression. CompressionLevel constructors will be hidden in version 0.7" #-}
616
618
{-# DEPRECATED NoCompression "Use noCompression. CompressionLevel constructors will be hidden in version 0.7" #-}
@@ -670,6 +672,7 @@ data WindowBits = WindowBits Int
670
672
-- is defined with and used by the tests.
671
673
-- It makse sense because the default value
672
674
-- is is also the max value at 15.
675
+ deriving (Eq , Show , Typeable , Generic )
673
676
674
677
{-# DEPRECATED DefaultWindowBits "Use defaultWindowBits. WindowBits constructors will be hidden in version 0.7" #-}
675
678
-- FIXME: cannot deprecate constructor named the same as the type
@@ -725,6 +728,7 @@ data MemoryLevel =
725
728
| MinMemoryLevel
726
729
| MaxMemoryLevel
727
730
| MemoryLevel Int
731
+ deriving (Eq , Show , Typeable , Generic )
728
732
729
733
{-# DEPRECATED DefaultMemoryLevel "Use defaultMemoryLevel. MemoryLevel constructors will be hidden in version 0.7" #-}
730
734
{-# DEPRECATED MinMemoryLevel "Use minMemoryLevel. MemoryLevel constructors will be hidden in version 0.7" #-}
@@ -774,6 +778,7 @@ data CompressionStrategy =
774
778
DefaultStrategy
775
779
| Filtered
776
780
| HuffmanOnly
781
+ deriving (Eq , Ord , Enum , Bounded , Show , Typeable , Generic )
777
782
778
783
{-
779
784
-- -- only available in zlib 1.2 and later, uncomment if you need it.
0 commit comments