[Haskell-beginners] defining own arbitrary :: Gen Int
ben
benedikt.ahrens at gmx.net
Sat Mar 7 07:54:33 EST 2009
Hello,
I would like to define my own arbitrary which should only give naturals,
i. e. which should behave like
instance Arbitrary Integer where
arbitrary = elements ([0..]).
This definition gives a "multiple definition" error. Is there a way to
hide the definition of arbitrary::Gen Int of QuickCheck, such that I can
use my own definition ?
Thanks a lot in advance,
ben
More information about the Beginners
mailing list