[Haskell-cafe] Quick Question for QuickCheck2

Sebastian Höhn sebastian.hoehn at googlemail.com
Mon Aug 30 11:12:22 EDT 2010


Hello,

perhaps I am just blind or is it a difficult issue: I would like to
generate Char values in a given Range for QuickCheck2. There is this
simple example from the haskell book:

instance Arbitrary Char where
   arbitrary = elements (['A'..'Z'] ++ ['a' .. 'z'] ++ " ~!@#$%^&*()")

This does not work in QuickCheck2 since the instance is already
defined. How do I achieve this behaviour in QC2?

Thanks for helping.

Sebastian


More information about the Haskell-Cafe mailing list