diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-01-05 16:57:01 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-01-06 14:24:59 +0000 |
commit | 39337a6d97c853a88fa61d6b12a04eb8c2e5984f (patch) | |
tree | 0dd7051080041ee928429832122b9dd14add302c /compiler/utils/Binary.hs | |
parent | 32973bf3c2f6fe00e01b44a63ac1904080466938 (diff) | |
download | haskell-39337a6d97c853a88fa61d6b12a04eb8c2e5984f.tar.gz |
Remove redundant constraints in the compiler itself, found by -fwarn-redundant-constraints
Diffstat (limited to 'compiler/utils/Binary.hs')
-rw-r--r-- | compiler/utils/Binary.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/Binary.hs b/compiler/utils/Binary.hs index 1e85a73d0e..a83e613029 100644 --- a/compiler/utils/Binary.hs +++ b/compiler/utils/Binary.hs @@ -549,7 +549,7 @@ writeByteArray arr i (W8# w) = IO $ \s -> indexByteArray :: ByteArray# -> Int# -> Word8 indexByteArray a# n# = W8# (indexWord8Array# a# n#) -instance (Integral a, Binary a) => Binary (Ratio a) where +instance (Binary a) => Binary (Ratio a) where put_ bh (a :% b) = do put_ bh a; put_ bh b get bh = do a <- get bh; b <- get bh; return (a :% b) |