diff options
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r-- | src/Network/BitTorrent/Exchange/Message.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Exchange/Message.hs b/src/Network/BitTorrent/Exchange/Message.hs index e1e17e6e..c3f6818f 100644 --- a/src/Network/BitTorrent/Exchange/Message.hs +++ b/src/Network/BitTorrent/Exchange/Message.hs | |||
@@ -180,9 +180,9 @@ instance Default Caps where | |||
180 | def = Caps 0 | 180 | def = Caps 0 |
181 | {-# INLINE def #-} | 181 | {-# INLINE def #-} |
182 | 182 | ||
183 | -- | Monoid under intersection. | 183 | -- | Monoid under intersection. 'mempty' includes all known extensions. |
184 | instance Monoid Caps where | 184 | instance Monoid Caps where |
185 | mempty = Caps (-1) | 185 | mempty = toCaps [minBound .. maxBound] |
186 | {-# INLINE mempty #-} | 186 | {-# INLINE mempty #-} |
187 | 187 | ||
188 | mappend (Caps a) (Caps b) = Caps (a .&. b) | 188 | mappend (Caps a) (Caps b) = Caps (a .&. b) |
@@ -578,7 +578,7 @@ instance Default ExtendedCaps where | |||
578 | 578 | ||
579 | -- | Monoid under intersection: | 579 | -- | Monoid under intersection: |
580 | -- | 580 | -- |
581 | -- * The 'mempty' caps include all known extensions; | 581 | -- * The 'mempty' caps includes all known extensions; |
582 | -- | 582 | -- |
583 | -- * the 'mappend' operation is NOT commutative: it return message | 583 | -- * the 'mappend' operation is NOT commutative: it return message |
584 | -- id from the first caps for the extensions existing in both caps. | 584 | -- id from the first caps for the extensions existing in both caps. |