diff options
Diffstat (limited to 'src/Network/Tox/NodeId.hs')
-rw-r--r-- | src/Network/Tox/NodeId.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs index 0ffc3d22..fbf6702a 100644 --- a/src/Network/Tox/NodeId.hs +++ b/src/Network/Tox/NodeId.hs | |||
@@ -37,8 +37,13 @@ import Debug.Trace | |||
37 | import Control.Applicative | 37 | import Control.Applicative |
38 | import Control.Arrow | 38 | import Control.Arrow |
39 | import Control.Monad | 39 | import Control.Monad |
40 | #ifdef CRYPTONITE_BACKPORT | ||
40 | import Crypto.Error.Types (CryptoFailable (..), | 41 | import Crypto.Error.Types (CryptoFailable (..), |
41 | throwCryptoError) | 42 | throwCryptoError) |
43 | #else | ||
44 | import Crypto.Error | ||
45 | #endif | ||
46 | |||
42 | import Crypto.PubKey.Curve25519 | 47 | import Crypto.PubKey.Curve25519 |
43 | import qualified Data.Aeson as JSON | 48 | import qualified Data.Aeson as JSON |
44 | ;import Data.Aeson (FromJSON, ToJSON, (.=)) | 49 | ;import Data.Aeson (FromJSON, ToJSON, (.=)) |