Skip to content

Commit 23d6a91

Browse files
committed
Fix testsuite
Remove now duplicate instances.
1 parent e6e117f commit 23d6a91

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/Test/Codec/Compression/Zlib/Stream.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,34 @@ import Codec.Compression.Zlib.Internal
99
import Test.QuickCheck
1010

1111

12-
deriving instance Show Format
1312
instance Arbitrary Format where
1413
-- GZipOrZlib omitted since it's not symmetric
1514
arbitrary = elements [gzipFormat, zlibFormat, rawFormat]
1615

1716

18-
deriving instance Show Method
1917
instance Arbitrary Method where
2018
arbitrary = return deflateMethod
2119

2220

23-
deriving instance Show CompressionLevel
2421
instance Arbitrary CompressionLevel where
2522
arbitrary = elements $ [defaultCompression, noCompression,
2623
bestCompression, bestSpeed]
2724
++ map compressionLevel [1..9]
2825

2926

30-
deriving instance Eq WindowBits
3127
deriving instance Ord WindowBits
32-
deriving instance Show WindowBits
3328
instance Arbitrary WindowBits where
3429
arbitrary = elements $ defaultWindowBits:map windowBits [8..15]
3530
shrink DefaultWindowBits = []
3631
shrink (WindowBits n) = defaultWindowBits:map windowBits [n+1..15]
3732

3833

39-
deriving instance Show MemoryLevel
4034
instance Arbitrary MemoryLevel where
4135
arbitrary = elements $ [defaultMemoryLevel, minMemoryLevel, maxMemoryLevel]
4236
++ [memoryLevel n | n <- [1..9]]
4337

4438

4539

46-
deriving instance Show CompressionStrategy
4740
instance Arbitrary CompressionStrategy where
4841
arbitrary = elements $ [defaultStrategy, filteredStrategy, huffmanOnlyStrategy]
4942
-- These are disabled by default in the package

0 commit comments

Comments
 (0)