nick8325 / quickcheck

Automatic testing of Haskell programs.
Other
713 stars 119 forks source link

Cannot build with hackage head #302

Closed andrewthad closed 4 years ago

andrewthad commented 4 years ago

When using GHC head and hackage head, quickcheck fails to build with:

Test/QuickCheck/Random.hs:31:10: error:
    • No instance for (RandomGen SMGen) arising from a use of ‘split’
    • In the expression: split g
      In the expression:
        case split g of { (g1, g2) -> (QCGen g1, QCGen g2) }
      In an equation for ‘split’:
          split (QCGen g)
            = case split g of { (g1, g2) -> (QCGen g1, QCGen g2) }
   |
31 |     case split g of
   |          ^^^^^^^

and other similar errors.

phadej commented 4 years ago

See #300.

head.hackage's QuickCheck patch doesn't take into account revisions made. So this is head.hackage issue, not QuickCheck's.

andrewthad commented 4 years ago

Thanks. Adding --constraint='splitmix==0.0.5' resolved the problem.