Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary instance for Symbol #243

Closed
phipsgabler opened this issue Jun 3, 2016 · 1 comment · Fixed by #785
Closed

Arbitrary instance for Symbol #243

phipsgabler opened this issue Jun 3, 2016 · 1 comment · Fixed by #785
Labels

Comments

@phipsgabler
Copy link

Is there a specific reason that there is no default Arbitrary instance for Symbol? If not, could you just add something along the lines of

implicit lazy val arbSymbol: Arbitrary[Symbol] =
  Arbitrary(arbitrary[String].map(Symbol(_)))

?

non added a commit to non/scalacheck that referenced this issue Sep 4, 2016
non added a commit to non/scalacheck that referenced this issue Sep 4, 2016
@non
Copy link
Contributor

non commented Sep 4, 2016

Unfortunately the obvious way to add this implicit breaks binary compatibility (according to MiMA). We could probably work around this by adding a new trait for object Arbitrary to extend, but I'll wait until I hear from @rickynils about if (or when) he wants to add this implicit and how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants