summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2017-10-31 19:01:02 +0000
committerJames Crayne <jim.crayne@gmail.com>2017-10-31 19:01:02 +0000
commit08606959a26b9cbc1ceb8c8396c870612004dd38 (patch)
treedbeaba9574baf5655bcc7af31569752c329345d6 /src/Network/Tox/Crypto
parent03ab4e36ade69a953f883d4d6f52f4a023dfda61 (diff)
obsolete cabal conditional dependency & some missing type sigs
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 089a991d..8a45ba64 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -20,6 +20,7 @@ import Data.Word
20import GHC.Conc (unsafeIOToSTM) 20import GHC.Conc (unsafeIOToSTM)
21 21
22-- util, todo: move to another module 22-- util, todo: move to another module
23maybeToEither :: Maybe b -> Either String b
23maybeToEither (Just x) = Right x 24maybeToEither (Just x) = Right x
24maybeToEither Nothing = Left "maybeToEither" 25maybeToEither Nothing = Left "maybeToEither"
25 26
@@ -201,5 +202,5 @@ cryptoNetHandler sessions addr (NetCrypto (CryptoPacket nonce16 encrypted)) = do
201 _ -> error "unreachable-last2Bytes" 202 _ -> error "unreachable-last2Bytes"
202 dATA_NUM_THRESHOLD = 21845 -- = 65535 / 3 203 dATA_NUM_THRESHOLD = 21845 -- = 65535 / 3
203 204
204 205cryptoDefaultHooks :: Map.Map MessageType [NetCryptoHook]
205cryptoDefaultHooks = Map.empty 206cryptoDefaultHooks = Map.empty