{"action":"created","issue":{"url":"https://api.github.com/repos/fscheck/FsCheck/issues/268","repository_url":"https://api.github.com/repos/fscheck/FsCheck","labels_url":"https://api.github.com/repos/fscheck/FsCheck/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/fscheck/FsCheck/issues/268/comments","events_url":"https://api.github.com/repos/fscheck/FsCheck/issues/268/events","html_url":"https://github.com/fscheck/FsCheck/issues/268","id":156152522,"number":268,"title":"Make Gen.eval easier to use in v3","user":{"login":"moodmosaic","id":287532,"avatar_url":"https://avatars.githubusercontent.com/u/287532?v=3","gravatar_id":"","url":"https://api.github.com/users/moodmosaic","html_url":"https://github.com/moodmosaic","followers_url":"https://api.github.com/users/moodmosaic/followers","following_url":"https://api.github.com/users/moodmosaic/following{/other_user}","gists_url":"https://api.github.com/users/moodmosaic/gists{/gist_id}","starred_url":"https://api.github.com/users/moodmosaic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moodmosaic/subscriptions","organizations_url":"https://api.github.com/users/moodmosaic/orgs","repos_url":"https://api.github.com/users/moodmosaic/repos","events_url":"https://api.github.com/users/moodmosaic/events{/privacy}","received_events_url":"https://api.github.com/users/moodmosaic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-22T13:36:04Z","updated_at":"2016-12-13T09:45:20Z","closed_at":null,"body":"Currently, the type signature of `Gen.eval` is\n\n``` fsharp\nint -> StdGen -> Gen<'a> -> 'a\n```\n\nWhere `int` stands for `size`, `StdGen` for an instance of `Random`, and `Gen<'a>` for the generator we want to evaluate.\n\nI believe that `StdGen` shouldn't be exposed, as it's really an implementation detail, and so `Gen.eval` should look like:\n\n``` fsharp\nint -> Gen<'a> -> 'a\n```\n\nWhere `int` stands for `size`, and `Gen<'a>` for the generator we want to evaluate.\n\n---\n\n_If_ `Runner` uses `Gen.eval` for test-replaying, that could be done via some other function, probably internal, or [hidden](http://blog.ploeh.dk/2015/09/21/public-types-hidden-in-plain-sight/).\n\nRelated: #267, #236, #198.\n"},"comment":{"url":"https://api.github.com/repos/fscheck/FsCheck/issues/comments/266692860","html_url":"https://github.com/fscheck/FsCheck/issues/268#issuecomment-266692860","issue_url":"https://api.github.com/repos/fscheck/FsCheck/issues/268","id":266692860,"user":{"login":"ploeh","id":242165,"avatar_url":"https://avatars.githubusercontent.com/u/242165?v=3","gravatar_id":"","url":"https://api.github.com/users/ploeh","html_url":"https://github.com/ploeh","followers_url":"https://api.github.com/users/ploeh/followers","following_url":"https://api.github.com/users/ploeh/following{/other_user}","gists_url":"https://api.github.com/users/ploeh/gists{/gist_id}","starred_url":"https://api.github.com/users/ploeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploeh/subscriptions","organizations_url":"https://api.github.com/users/ploeh/orgs","repos_url":"https://api.github.com/users/ploeh/repos","events_url":"https://api.github.com/users/ploeh/events{/privacy}","received_events_url":"https://api.github.com/users/ploeh/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T09:45:20Z","updated_at":"2016-12-13T09:45:20Z","body":"Isn't `Gen.eval` deterministic?"}}
{"actor":{"display_login":"ploeh"}}