cryptonite/Crypto
Sergei Trofimovich d911a34258 fix build failure with -f-support_deepseq disabled
How to reproduce:

```
$ cabal configure -f-support_deepseq
Resolving dependencies...
Configuring cryptonite-0.23...

$ cabal build
Building cryptonite-0.23...
Preprocessing library cryptonite-0.23...
[114 of 120] Compiling Crypto.PubKey.RSA.Types ( Crypto/PubKey/RSA/Types.hs, dist/build/Crypto/PubKey/RSA/Types

Crypto/PubKey/RSA/Types.hs:48:30: error:
    • No instance for (NFData Integer) arising from a use of ‘rnf’
    • In the first argument of ‘seq’, namely ‘rnf n’
      In the expression: rnf n `seq` rnf e `seq` sz `seq` ()
      In an equation for ‘rnf’:
          rnf (PublicKey sz n e) = rnf n `seq` rnf e `seq` sz `seq` ()
```

The fix is to inctoruce 'NFData Integer' instance to `Crypto/Internal/DeepSeq`.

Closes: https://github.com/haskell-crypto/cryptonite/issues/171
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2017-06-19 10:37:23 +01:00
..
Cipher Make ivAdd more constant-time 2017-05-31 23:31:29 +02:00
ConstructHash apply zero-padding to miyaguchi-preneel. 2016-06-08 22:26:14 +09:00
Data fix unpad of zero-padding and add tests. 2016-06-08 22:57:35 +09:00
ECC/Simple fix proxy 2016-12-02 21:07:13 +00:00
Error Argon2: add working hash function 2017-02-24 13:37:40 +00:00
Hash [Hash] change Digest to use a foundation UArray that have configurable pinnable memory setting 2017-04-25 14:23:13 +01:00
Internal fix build failure with -f-support_deepseq disabled 2017-06-19 10:37:23 +01:00
KDF Fix docs for Argon variants 2017-05-17 17:11:00 -04:00
MAC [CMAC] drop the accessor in favor of just using the ByteArrayAccess constraint 2016-04-09 10:31:13 +01:00
Math merge crypto-numbers minus all the random parts 2015-02-09 05:47:11 +00:00
Number Fix issue #154 2017-04-21 13:51:52 -06:00
PubKey remove redundant condition test on `hashLen /= B.length mHash` 2017-05-18 21:00:14 -07:00
Random fix documentation typo 2016-05-05 19:51:22 +03:00
ECC.hs Derive Show,Data,Typeable when defining curve singletons 2017-06-10 14:26:59 +02:00
Error.hs add crypto errors standard enumeration and some helper. 2015-04-07 10:56:38 +01:00
Hash.hs Add missing extension 2017-04-25 14:21:53 +01:00
OTP.hs Drop use of 'time' library from OTP implementation 2016-04-11 17:52:59 +01:00
Random.hs [random] add a seed capability with export/import from integer. 2016-04-09 08:33:37 +01:00
Tutorial.hs Restore Haddock comment in tutorial module 2017-05-05 07:21:52 +02:00