
8 Jan
2011
8 Jan
'11
4:45 p.m.
Then you should use a custom generator and not Arbitrary. On Sat, Jan 8, 2011 at 9:39 PM, Ivan Lazar Miljenovic < ivan.miljenovic@gmail.com> wrote:
On 9 January 2011 07:20, Henning Thielemann
wrote: If there are multiple equally natural instances, then there should not be one at all.
It depends what you mean. In my case, I wanted the String instance for Arbitrary to follow certain rules (can't be the textual representation of a number, can't have certain characters in it, etc.).
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries