@@ -550,7 +550,7 @@ data ErrorCode =
550
550
| MemoryError
551
551
| BufferError -- ^ No progress was possible or there was not enough room in
552
552
-- the output buffer when 'Finish' is used. Note that
553
- -- 'BuferError ' is not fatal, and 'inflate' can be called
553
+ -- 'BufferError ' is not fatal, and 'inflate' can be called
554
554
-- again with more input and more output space to continue.
555
555
| VersionError
556
556
| Unexpected
@@ -608,10 +608,10 @@ 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" #-}
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
615
616
616
-- | The gzip format uses a header with a checksum and some optional meta-data
617
617
-- about the compressed file. It is intended primarily for compressing
@@ -657,9 +657,9 @@ data Method = Deflated
657
657
#endif
658
658
)
659
659
660
- {-# DEPRECATED Deflated "Use deflateMethod. Method constructors will be hidden in version 0.7" #-}
660
+ {-# DEPRECATED Deflated "Use ' deflateMethod'. ' Method' constructors will be hidden in version 0.7. " #-}
661
661
662
- -- | \'Deflate\' is the only method supported in this version of zlib.
662
+ -- | The only method supported in this version of zlib.
663
663
-- Indeed it is likely to be the only method that ever will be supported.
664
664
--
665
665
deflateMethod :: Method
@@ -679,18 +679,19 @@ data CompressionLevel =
679
679
| BestSpeed
680
680
| BestCompression
681
681
| CompressionLevel Int
682
+ -- ^ Use 'compressionLevel'. 'CompressionLevel' constructors will be hidden in version 0.7.
682
683
deriving (Eq , Show , Typeable
683
684
#if __GLASGOW_HASKELL__ >= 702
684
685
, Generic
685
686
#endif
686
687
)
687
688
688
- {-# DEPRECATED DefaultCompression "Use defaultCompression. CompressionLevel constructors will be hidden in version 0.7" #-}
689
- {-# DEPRECATED NoCompression "Use noCompression. CompressionLevel constructors will be hidden in version 0.7" #-}
690
- {-# DEPRECATED BestSpeed "Use bestSpeed. CompressionLevel constructors will be hidden in version 0.7" #-}
691
- {-# DEPRECATED BestCompression "Use bestCompression. CompressionLevel constructors will be hidden in version 0.7" #-}
689
+ {-# DEPRECATED DefaultCompression "Use ' defaultCompression'. ' CompressionLevel' constructors will be hidden in version 0.7. " #-}
690
+ {-# DEPRECATED NoCompression "Use ' noCompression'. ' CompressionLevel' constructors will be hidden in version 0.7. " #-}
691
+ {-# DEPRECATED BestSpeed "Use ' bestSpeed'. ' CompressionLevel' constructors will be hidden in version 0.7. " #-}
692
+ {-# DEPRECATED BestCompression "Use ' bestCompression'. ' CompressionLevel' constructors will be hidden in version 0.7. " #-}
692
693
-- FIXME: cannot deprecate constructor named the same as the type
693
- {- DEPRECATED CompressionLevel "Use compressionLevel. CompressionLevel constructors will be hidden in version 0.7" -}
694
+ {- DEPRECATED CompressionLevel "Use ' compressionLevel'. ' CompressionLevel' constructors will be hidden in version 0.7. " -}
694
695
695
696
-- | The default compression level is 6 (that is, biased towards higher
696
697
-- compression at expense of speed).
@@ -738,6 +739,8 @@ fromCompressionLevel (CompressionLevel n)
738
739
-- 'MemoryLevel'. See the 'MemoryLevel' for the details.
739
740
--
740
741
data WindowBits = WindowBits Int
742
+ -- ^ Use 'windowBits'.
743
+ -- 'WindowBits' constructors will be hidden in version 0.7.
741
744
| DefaultWindowBits -- This constructor must be last to make
742
745
-- the Ord instance work. The Ord instance
743
746
-- is used by the tests.
@@ -749,9 +752,9 @@ data WindowBits = WindowBits Int
749
752
#endif
750
753
)
751
754
752
- {-# DEPRECATED DefaultWindowBits "Use defaultWindowBits. WindowBits constructors will be hidden in version 0.7" #-}
755
+ {-# DEPRECATED DefaultWindowBits "Use ' defaultWindowBits'. ' WindowBits' constructors will be hidden in version 0.7. " #-}
753
756
-- FIXME: cannot deprecate constructor named the same as the type
754
- {- DEPRECATED WindowBits "Use windowBits. WindowBits constructors will be hidden in version 0.7" -}
757
+ {- DEPRECATED WindowBits "Use ' windowBits'. ' WindowBits' constructors will be hidden in version 0.7. " -}
755
758
756
759
-- | The default 'WindowBits' is 15 which is also the maximum size.
757
760
--
@@ -803,17 +806,18 @@ data MemoryLevel =
803
806
| MinMemoryLevel
804
807
| MaxMemoryLevel
805
808
| MemoryLevel Int
809
+ -- ^ Use 'memoryLevel'. 'MemoryLevel' constructors will be hidden in version 0.7.
806
810
deriving (Eq , Show , Typeable
807
811
#if __GLASGOW_HASKELL__ >= 702
808
812
, Generic
809
813
#endif
810
814
)
811
815
812
- {-# DEPRECATED DefaultMemoryLevel "Use defaultMemoryLevel. MemoryLevel constructors will be hidden in version 0.7" #-}
813
- {-# DEPRECATED MinMemoryLevel "Use minMemoryLevel. MemoryLevel constructors will be hidden in version 0.7" #-}
814
- {-# DEPRECATED MaxMemoryLevel "Use maxMemoryLevel. MemoryLevel constructors will be hidden in version 0.7" #-}
816
+ {-# DEPRECATED DefaultMemoryLevel "Use ' defaultMemoryLevel'. ' MemoryLevel' constructors will be hidden in version 0.7. " #-}
817
+ {-# DEPRECATED MinMemoryLevel "Use ' minMemoryLevel'. ' MemoryLevel' constructors will be hidden in version 0.7. " #-}
818
+ {-# DEPRECATED MaxMemoryLevel "Use ' maxMemoryLevel'. ' MemoryLevel' constructors will be hidden in version 0.7. " #-}
815
819
-- FIXME: cannot deprecate constructor named the same as the type
816
- {- DEPRECATED MemoryLevel "Use memoryLevel. MemoryLevel constructors will be hidden in version 0.7" -}
820
+ {- DEPRECATED MemoryLevel "Use ' memoryLevel'. ' MemoryLevel' constructors will be hidden in version 0.7. " -}
817
821
818
822
-- | The default memory level. (Equivalent to @'memoryLevel' 8@)
819
823
--
@@ -867,11 +871,11 @@ data CompressionStrategy =
867
871
#endif
868
872
)
869
873
870
- {-# DEPRECATED DefaultStrategy "Use defaultStrategy. CompressionStrategy constructors will be hidden in version 0.7" #-}
871
- {-# DEPRECATED Filtered "Use filteredStrategy. CompressionStrategy constructors will be hidden in version 0.7" #-}
872
- {-# DEPRECATED HuffmanOnly "Use huffmanOnlyStrategy. CompressionStrategy constructors will be hidden in version 0.7" #-}
873
- {-# DEPRECATED RLE "Use rleStrategy. CompressionStrategy constructors will be hidden in version 0.7" #-}
874
- {-# DEPRECATED Fixed "Use fixedStrategy. CompressionStrategy constructors will be hidden in version 0.7" #-}
874
+ {-# DEPRECATED DefaultStrategy "Use ' defaultStrategy'. ' CompressionStrategy' constructors will be hidden in version 0.7. " #-}
875
+ {-# DEPRECATED Filtered "Use ' filteredStrategy'. ' CompressionStrategy' constructors will be hidden in version 0.7. " #-}
876
+ {-# DEPRECATED HuffmanOnly "Use ' huffmanOnlyStrategy'. ' CompressionStrategy' constructors will be hidden in version 0.7. " #-}
877
+ {-# DEPRECATED RLE "Use ' rleStrategy'. ' CompressionStrategy' constructors will be hidden in version 0.7. " #-}
878
+ {-# DEPRECATED Fixed "Use ' fixedStrategy'. ' CompressionStrategy' constructors will be hidden in version 0.7. " #-}
875
879
876
880
-- | Use this default compression strategy for normal data.
877
881
--
@@ -883,7 +887,7 @@ defaultStrategy = DefaultStrategy
883
887
-- random distribution. In this case, the compression algorithm is tuned to
884
888
-- compress them better. The effect of this strategy is to force more Huffman
885
889
-- coding and less string matching; it is somewhat intermediate between
886
- -- 'defaultCompressionStrategy ' and 'huffmanOnlyCompressionStrategy '.
890
+ -- 'defaultStrategy ' and 'huffmanOnlyStrategy '.
887
891
--
888
892
filteredStrategy :: CompressionStrategy
889
893
filteredStrategy = Filtered
0 commit comments