raaz-crypto / raaz

Cryptographic library for Haskell
Apache License 2.0
68 stars 24 forks source link

Test suite build failure with newest QuickCheck #337

Closed snoyberg closed 7 years ago

snoyberg commented 7 years ago
Building test suite 'spec' for raaz-0.1.1..
[ 1 of 20] Compiling Common.Imports   ( spec/Common/Imports.hs, dist/build/spec/spec-tmp/Common/Imports.o )

spec/Common/Imports.hs:18:1: warning: [-Wdeprecations]
    Module ‘Raaz.Hash.Sha1’ is deprecated:
      SHA1 is broken. This module is here only for transition.
   |
18 | import Raaz.Hash.Sha1          as E
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 2 of 20] Compiling Common.Utils     ( spec/Common/Utils.hs, dist/build/spec/spec-tmp/Common/Utils.o )

spec/Common/Utils.hs:82:15: error:
    • Could not deduce (Testable pr) arising from a use of ‘monadicIO’
      from the context: Show a
        bound by the type signature for:
                   feed :: forall a pr. Show a => Gen a -> (a -> IO pr) -> Property
        at spec/Common/Utils.hs:81:1-51
      Possible fix:
        add (Testable pr) to the context of
          the type signature for:
            feed :: forall a pr. Show a => Gen a -> (a -> IO pr) -> Property
    • In the expression: monadicIO $ pick gen >>= (run . pr)
      In an equation for ‘feed’:
          feed gen pr = monadicIO $ pick gen >>= (run . pr)
   |
82 | feed gen pr = monadicIO $ pick gen >>= (run . pr)
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
piyush-kurur commented 7 years ago

Already fixed in head. So will not be fixing this for 0.1.1.

piyush-kurur commented 7 years ago

Since the release of 0.2.0 is soon due I hope this is fine.