summaryrefslogtreecommitdiff
path: root/src/Data/Tox
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Tox')
-rw-r--r--src/Data/Tox/Message.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Data/Tox/Message.hs b/src/Data/Tox/Message.hs
index b77307a2..29b9f832 100644
--- a/src/Data/Tox/Message.hs
+++ b/src/Data/Tox/Message.hs
@@ -75,8 +75,9 @@ data LossyOrLossless = Lossless | Lossy
75 75
76-- | Classify a packet as lossy or lossless. 76-- | Classify a packet as lossy or lossless.
77lossyness :: MessageID -> LossyOrLossless 77lossyness :: MessageID -> LossyOrLossless
78lossyness (fromEnum -> 1) = Lossless
78lossyness (fromEnum -> x) | x < 3 = Lossy 79lossyness (fromEnum -> x) | x < 3 = Lossy
79lossyness (fromEnum -> x) | {-16 <= x,-} x < 192 = Lossless 80lossyness (fromEnum -> x) | 16 <= x, x < 192 = Lossless
80lossyness (fromEnum -> x) | 192 <= x, x < 255 = Lossy 81lossyness (fromEnum -> x) | 192 <= x, x < 255 = Lossy
81lossyness (fromEnum -> 255) = Lossless 82lossyness (fromEnum -> 255) = Lossless
82 83