summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r--src/Network/BitTorrent/Exchange/Message.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Exchange/Message.hs b/src/Network/BitTorrent/Exchange/Message.hs
index af212c3b..8659eb89 100644
--- a/src/Network/BitTorrent/Exchange/Message.hs
+++ b/src/Network/BitTorrent/Exchange/Message.hs
@@ -712,8 +712,8 @@ data ExtendedMessage
712 712
713instance Pretty ExtendedMessage where 713instance Pretty ExtendedMessage where
714 pretty (EHandshake ehs) = pretty ehs 714 pretty (EHandshake ehs) = pretty ehs
715 pretty (EMetadata _ msg) = pretty msg 715 pretty (EMetadata _ msg) = "Metadata" <+> pretty msg
716 pretty (EUnknown mid _ ) = "Unknown" <+> PP.text (show mid) 716 pretty (EUnknown mid _ ) = "Unknown" <+> PP.text (show mid)
717 717
718instance PeerMessage ExtendedMessage where 718instance PeerMessage ExtendedMessage where
719 envelop _ = Extended 719 envelop _ = Extended
@@ -761,7 +761,7 @@ instance Default Message where
761-- | Payload bytes are omitted. 761-- | Payload bytes are omitted.
762instance Pretty Message where 762instance Pretty Message where
763 pretty (KeepAlive ) = "Keep alive" 763 pretty (KeepAlive ) = "Keep alive"
764 pretty (Status m) = pretty m 764 pretty (Status m) = "Status" <+> pretty m
765 pretty (Available m) = pretty m 765 pretty (Available m) = pretty m
766 pretty (Transfer m) = pretty m 766 pretty (Transfer m) = pretty m
767 pretty (Port p) = "Port" <+> int (fromEnum p) 767 pretty (Port p) = "Port" <+> int (fromEnum p)