packages with orphaned instances only
Lennart Augustsson
lennart at augustsson.net
Sat Jan 8 22:45:03 CET 2011
Then you should use a custom generator and not Arbitrary.
On Sat, Jan 8, 2011 at 9:39 PM, Ivan Lazar Miljenovic <
ivan.miljenovic at gmail.com> wrote:
> On 9 January 2011 07:20, Henning Thielemann
> <lemming at henning-thielemann.de> 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 at gmail.com
> IvanMiljenovic.wordpress.com
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110108/ca7b7612/attachment.htm>
More information about the Libraries
mailing list