summaryrefslogtreecommitdiff
path: root/dht/src/Data/Tox/Msg.hs
diff options
context:
space:
mode:
Diffstat (limited to 'dht/src/Data/Tox/Msg.hs')
-rw-r--r--dht/src/Data/Tox/Msg.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/dht/src/Data/Tox/Msg.hs b/dht/src/Data/Tox/Msg.hs
index 66ec6eb1..8819faa7 100644
--- a/dht/src/Data/Tox/Msg.hs
+++ b/dht/src/Data/Tox/Msg.hs
@@ -97,6 +97,7 @@ deriving instance (Show (Pkt a))
97 97
98type CryptoMessage = DSum Pkt Identity 98type CryptoMessage = DSum Pkt Identity
99 99
100msgID :: DSum Pkt Identity -> SomeMsg
100msgID (Pkt mid :=> Identity _) = M mid 101msgID (Pkt mid :=> Identity _) = M mid
101 102
102-- TODO 103-- TODO
@@ -227,6 +228,7 @@ fromEnum8 = fromIntegral . fromEnum
227 228
228data LossyOrLossless = Lossless | Lossy deriving (Eq,Ord,Enum,Show,Bounded) 229data LossyOrLossless = Lossless | Lossy deriving (Eq,Ord,Enum,Show,Bounded)
229 230
231someLossyness :: SomeMsg -> LossyOrLossless
230someLossyness (M m) = lossyness m 232someLossyness (M m) = lossyness m
231 233
232lossyness :: KnownNat n => Msg n t -> LossyOrLossless 234lossyness :: KnownNat n => Msg n t -> LossyOrLossless