diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index 5316acc8..e79b66fc 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -2,6 +2,7 @@ | |||
2 | {-# LANGUAGE TupleSections #-} | 2 | {-# LANGUAGE TupleSections #-} |
3 | {-# LANGUAGE TypeOperators #-} | 3 | {-# LANGUAGE TypeOperators #-} |
4 | {-# LANGUAGE DeriveFunctor #-} | 4 | {-# LANGUAGE DeriveFunctor #-} |
5 | {-# LANGUAGE CPP #-} | ||
5 | module Network.Tox.Crypto.Handlers where | 6 | module Network.Tox.Crypto.Handlers where |
6 | 7 | ||
7 | import Network.Tox.NodeId | 8 | import Network.Tox.NodeId |
@@ -40,8 +41,12 @@ import System.IO.Temp | |||
40 | import System.Environment | 41 | import System.Environment |
41 | import System.Directory | 42 | import System.Directory |
42 | import System.Random -- for ping fuzz | 43 | import System.Random -- for ping fuzz |
44 | #ifdef THREAD_DEBUG | ||
45 | import Control.Concurrent.Lifted.Instrument | ||
46 | #else | ||
43 | import Control.Concurrent | 47 | import Control.Concurrent |
44 | import GHC.Conc (labelThread) | 48 | import GHC.Conc (labelThread) |
49 | #endif | ||
45 | import PingMachine | 50 | import PingMachine |
46 | import qualified Data.IntMap.Strict as IntMap | 51 | import qualified Data.IntMap.Strict as IntMap |
47 | import Control.Concurrent.Supply | 52 | import Control.Concurrent.Supply |