@@ -30,29 +30,29 @@ module Codec.Compression.Zlib.Stream (
30
30
inflateInit ,
31
31
32
32
-- ** Initialisation parameters
33
- Format ( .. ) ,
33
+ Format ,
34
34
gzipFormat ,
35
35
zlibFormat ,
36
36
rawFormat ,
37
37
gzipOrZlibFormat ,
38
38
formatSupportsDictionary ,
39
- CompressionLevel ( .. ) ,
39
+ CompressionLevel ,
40
40
defaultCompression ,
41
41
noCompression ,
42
42
bestSpeed ,
43
43
bestCompression ,
44
44
compressionLevel ,
45
- Method ( .. ) ,
45
+ Method ,
46
46
deflateMethod ,
47
- WindowBits ( .. ) ,
47
+ WindowBits ,
48
48
defaultWindowBits ,
49
49
windowBits ,
50
- MemoryLevel ( .. ) ,
50
+ MemoryLevel ,
51
51
defaultMemoryLevel ,
52
52
minMemoryLevel ,
53
53
maxMemoryLevel ,
54
54
memoryLevel ,
55
- CompressionStrategy ( .. ) ,
55
+ CompressionStrategy ,
56
56
defaultStrategy ,
57
57
filteredStrategy ,
58
58
huffmanOnlyStrategy ,
@@ -608,11 +608,6 @@ data Format = GZip | Zlib | Raw | GZipOrZlib
608
608
#endif
609
609
)
610
610
611
- {-# DEPRECATED GZip "Use 'gzipFormat'. 'Format' constructors will be hidden in version 0.7." #-}
612
- {-# DEPRECATED Zlib "Use 'zlibFormat'. 'Format' constructors will be hidden in version 0.7." #-}
613
- {-# DEPRECATED Raw "Use 'rawFormat'. 'Format' constructors will be hidden in version 0.7." #-}
614
- {-# DEPRECATED GZipOrZlib "Use 'gzipOrZlibFormat'. 'Format' constructors will be hidden in version 0.7." #-}
615
-
616
611
-- | The gzip format uses a header with a checksum and some optional meta-data
617
612
-- about the compressed file. It is intended primarily for compressing
618
613
-- individual files but is also sometimes used for network protocols such as
@@ -657,8 +652,6 @@ data Method = Deflated
657
652
#endif
658
653
)
659
654
660
- {-# DEPRECATED Deflated "Use 'deflateMethod'. 'Method' constructors will be hidden in version 0.7." #-}
661
-
662
655
-- | The only method supported in this version of zlib.
663
656
-- Indeed it is likely to be the only method that ever will be supported.
664
657
--
@@ -679,7 +672,6 @@ data CompressionLevel =
679
672
| BestSpeed
680
673
| BestCompression
681
674
| CompressionLevel Int
682
- -- ^ Use 'compressionLevel'. 'CompressionLevel' constructors will be hidden in version 0.7.
683
675
deriving
684
676
( Eq
685
677
, Ord -- ^ @since 0.7.0.0
@@ -690,13 +682,6 @@ data CompressionLevel =
690
682
#endif
691
683
)
692
684
693
- {-# DEPRECATED DefaultCompression "Use 'defaultCompression'. 'CompressionLevel' constructors will be hidden in version 0.7." #-}
694
- {-# DEPRECATED NoCompression "Use 'noCompression'. 'CompressionLevel' constructors will be hidden in version 0.7." #-}
695
- {-# DEPRECATED BestSpeed "Use 'bestSpeed'. 'CompressionLevel' constructors will be hidden in version 0.7." #-}
696
- {-# DEPRECATED BestCompression "Use 'bestCompression'. 'CompressionLevel' constructors will be hidden in version 0.7." #-}
697
- -- FIXME: cannot deprecate constructor named the same as the type
698
- {- DEPRECATED CompressionLevel "Use 'compressionLevel'. 'CompressionLevel' constructors will be hidden in version 0.7." -}
699
-
700
685
-- | The default compression level is 6 (that is, biased towards higher
701
686
-- compression at expense of speed).
702
687
defaultCompression :: CompressionLevel
@@ -743,8 +728,6 @@ fromCompressionLevel (CompressionLevel n)
743
728
-- 'MemoryLevel'. See the 'MemoryLevel' for the details.
744
729
--
745
730
data WindowBits = WindowBits Int
746
- -- ^ Use 'windowBits'.
747
- -- 'WindowBits' constructors will be hidden in version 0.7.
748
731
| DefaultWindowBits -- This constructor must be last to make
749
732
-- the Ord instance work. The Ord instance
750
733
-- is used by the tests.
@@ -760,10 +743,6 @@ data WindowBits = WindowBits Int
760
743
#endif
761
744
)
762
745
763
- {-# DEPRECATED DefaultWindowBits "Use 'defaultWindowBits'. 'WindowBits' constructors will be hidden in version 0.7." #-}
764
- -- FIXME: cannot deprecate constructor named the same as the type
765
- {- DEPRECATED WindowBits "Use 'windowBits'. 'WindowBits' constructors will be hidden in version 0.7." -}
766
-
767
746
-- | The default 'WindowBits' is 15 which is also the maximum size.
768
747
--
769
748
defaultWindowBits :: WindowBits
@@ -814,7 +793,6 @@ data MemoryLevel =
814
793
| MinMemoryLevel
815
794
| MaxMemoryLevel
816
795
| MemoryLevel Int
817
- -- ^ Use 'memoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7.
818
796
deriving
819
797
( Eq
820
798
, Ord -- ^ @since 0.7.0.0
@@ -825,12 +803,6 @@ data MemoryLevel =
825
803
#endif
826
804
)
827
805
828
- {-# DEPRECATED DefaultMemoryLevel "Use 'defaultMemoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7." #-}
829
- {-# DEPRECATED MinMemoryLevel "Use 'minMemoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7." #-}
830
- {-# DEPRECATED MaxMemoryLevel "Use 'maxMemoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7." #-}
831
- -- FIXME: cannot deprecate constructor named the same as the type
832
- {- DEPRECATED MemoryLevel "Use 'memoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7." -}
833
-
834
806
-- | The default memory level. (Equivalent to @'memoryLevel' 8@)
835
807
--
836
808
defaultMemoryLevel :: MemoryLevel
@@ -883,12 +855,6 @@ data CompressionStrategy =
883
855
#endif
884
856
)
885
857
886
- {-# DEPRECATED DefaultStrategy "Use 'defaultStrategy'. 'CompressionStrategy' constructors will be hidden in version 0.7." #-}
887
- {-# DEPRECATED Filtered "Use 'filteredStrategy'. 'CompressionStrategy' constructors will be hidden in version 0.7." #-}
888
- {-# DEPRECATED HuffmanOnly "Use 'huffmanOnlyStrategy'. 'CompressionStrategy' constructors will be hidden in version 0.7." #-}
889
- {-# DEPRECATED RLE "Use 'rleStrategy'. 'CompressionStrategy' constructors will be hidden in version 0.7." #-}
890
- {-# DEPRECATED Fixed "Use 'fixedStrategy'. 'CompressionStrategy' constructors will be hidden in version 0.7." #-}
891
-
892
858
-- | Use this default compression strategy for normal data.
893
859
--
894
860
defaultStrategy :: CompressionStrategy
0 commit comments