diff options
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index aa95df81..b3c4cedc 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | {-# LANGUAGE DeriveDataTypeable #-} | 2 | {-# LANGUAGE DeriveDataTypeable #-} |
2 | {-# LANGUAGE DeriveFoldable #-} | 3 | {-# LANGUAGE DeriveFoldable #-} |
3 | {-# LANGUAGE DeriveFunctor #-} | 4 | {-# LANGUAGE DeriveFunctor #-} |
@@ -25,9 +26,14 @@ import Control.Monad.Fix | |||
25 | import qualified Crypto.Cipher.ChaChaPoly1305 as Symmetric | 26 | import qualified Crypto.Cipher.ChaChaPoly1305 as Symmetric |
26 | import qualified Crypto.Cipher.Salsa as Salsa | 27 | import qualified Crypto.Cipher.Salsa as Salsa |
27 | import qualified Crypto.Cipher.XSalsa as XSalsa | 28 | import qualified Crypto.Cipher.XSalsa as XSalsa |
28 | import Crypto.ECC.Class | ||
29 | import qualified Crypto.Error as Cryptonite | 29 | import qualified Crypto.Error as Cryptonite |
30 | #ifdef CRYPTONITE_BACKPORT | ||
31 | import Crypto.ECC.Class | ||
30 | import Crypto.Error.Types | 32 | import Crypto.Error.Types |
33 | #else | ||
34 | import Crypto.ECC | ||
35 | import Crypto.Error | ||
36 | #endif | ||
31 | import qualified Crypto.MAC.Poly1305 as Poly1305 | 37 | import qualified Crypto.MAC.Poly1305 as Poly1305 |
32 | import Crypto.PubKey.Curve25519 | 38 | import Crypto.PubKey.Curve25519 |
33 | import Crypto.PubKey.ECC.Types | 39 | import Crypto.PubKey.ECC.Types |