diff options
author | James Crayne <jim.crayne@gmail.com> | 2017-10-31 19:01:02 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2017-10-31 19:01:02 +0000 |
commit | 08606959a26b9cbc1ceb8c8396c870612004dd38 (patch) | |
tree | dbeaba9574baf5655bcc7af31569752c329345d6 /src/Network/Tox/Crypto | |
parent | 03ab4e36ade69a953f883d4d6f52f4a023dfda61 (diff) |
obsolete cabal conditional dependency & some missing type sigs
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 3 |
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 | |||
20 | import GHC.Conc (unsafeIOToSTM) | 20 | import GHC.Conc (unsafeIOToSTM) |
21 | 21 | ||
22 | -- util, todo: move to another module | 22 | -- util, todo: move to another module |
23 | maybeToEither :: Maybe b -> Either String b | ||
23 | maybeToEither (Just x) = Right x | 24 | maybeToEither (Just x) = Right x |
24 | maybeToEither Nothing = Left "maybeToEither" | 25 | maybeToEither 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 | 205 | cryptoDefaultHooks :: Map.Map MessageType [NetCryptoHook] | |
205 | cryptoDefaultHooks = Map.empty | 206 | cryptoDefaultHooks = Map.empty |