Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created February 4, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/0af890aa0ffec0ebf45ae7e412c91a7d to your computer and use it in GitHub Desktop.
Save deque-blog/0af890aa0ffec0ebf45ae7e412c91a7d to your computer and use it in GitHub Desktop.
instance CoArbitrary Integer where
coarbitrary gen n =
Gen $ \rand ->
runGen gen (perturb n rand)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment