nick8325 / quickcheck

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

Export mkFun or Shrunk type #403

Closed coot closed 4 months ago

coot commented 4 months ago

Currently Shrunk type is not exported, and neither is mkFun (both are defined in Test.QuickCheck.Function), so the only hack to create something of the Fun type is to:

do
 Fun (_, _, notShrunk) _ <- arbitrary :: Gen (Fun a Bool)
 let fun = Fun (function (const False), False, notShrunked) (const False))

Which is rather cumbersome.