{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8","id":39437149,"html_url":"https://github.com/garyb/purescript-quickcheck-laws/pull/8","diff_url":"https://github.com/garyb/purescript-quickcheck-laws/pull/8.diff","patch_url":"https://github.com/garyb/purescript-quickcheck-laws/pull/8.patch","issue_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/8","number":8,"state":"open","locked":false,"title":"Add Checks for Traversable Laws","user":{"login":"DavidHarrison","id":2935011,"avatar_url":"https://avatars.githubusercontent.com/u/2935011?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHarrison","html_url":"https://github.com/DavidHarrison","followers_url":"https://api.github.com/users/DavidHarrison/followers","following_url":"https://api.github.com/users/DavidHarrison/following{/other_user}","gists_url":"https://api.github.com/users/DavidHarrison/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHarrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHarrison/subscriptions","organizations_url":"https://api.github.com/users/DavidHarrison/orgs","repos_url":"https://api.github.com/users/DavidHarrison/repos","events_url":"https://api.github.com/users/DavidHarrison/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHarrison/received_events","type":"User","site_admin":false},"body":"checkTraversable tests the identity and composition laws for Traversable. Unfortunately, I could not find a good way to use QuickCheck to test naturality, as the test seems to require a polymorphic natural transformation, which I don't know how to make Arbitrary in QuickCheck:\r\n``` purescript\r\nnaturality :: forall t f g a b. (Traversable t, Applicative f, Applicative g, Eq (g (t b))) => (forall k. f k -> g k) -> (a -> f b) -> t a -> Boolean\r\nnaturality t f x = lhs == rhs\r\n    where lhs :: g (t b)\r\n          lhs = (t <<< traverse f) x\r\n          rhs :: g (t b)\r\n          rhs = traverse (t <<< f) x\r\n```\r\nI have seen that some QuickCheck libraries ask the tester to supply a function in cases like these, but this feels not in keeping with the interface to the library, so I have commented out the test for now.","created_at":"2015-07-08T02:53:54Z","updated_at":"2015-07-08T02:53:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8/commits","review_comments_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8/comments","review_comment_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/comments{/number}","comments_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/8/comments","statuses_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/statuses/b5d1b5b5b08ac7142e4dc02f389591299864f84c","head":{"label":"DavidHarrison:master","ref":"master","sha":"b5d1b5b5b08ac7142e4dc02f389591299864f84c","user":{"login":"DavidHarrison","id":2935011,"avatar_url":"https://avatars.githubusercontent.com/u/2935011?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHarrison","html_url":"https://github.com/DavidHarrison","followers_url":"https://api.github.com/users/DavidHarrison/followers","following_url":"https://api.github.com/users/DavidHarrison/following{/other_user}","gists_url":"https://api.github.com/users/DavidHarrison/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHarrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHarrison/subscriptions","organizations_url":"https://api.github.com/users/DavidHarrison/orgs","repos_url":"https://api.github.com/users/DavidHarrison/repos","events_url":"https://api.github.com/users/DavidHarrison/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHarrison/received_events","type":"User","site_admin":false},"repo":{"id":38582215,"name":"purescript-quickcheck-laws","full_name":"DavidHarrison/purescript-quickcheck-laws","owner":{"login":"DavidHarrison","id":2935011,"avatar_url":"https://avatars.githubusercontent.com/u/2935011?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHarrison","html_url":"https://github.com/DavidHarrison","followers_url":"https://api.github.com/users/DavidHarrison/followers","following_url":"https://api.github.com/users/DavidHarrison/following{/other_user}","gists_url":"https://api.github.com/users/DavidHarrison/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHarrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHarrison/subscriptions","organizations_url":"https://api.github.com/users/DavidHarrison/orgs","repos_url":"https://api.github.com/users/DavidHarrison/repos","events_url":"https://api.github.com/users/DavidHarrison/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHarrison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DavidHarrison/purescript-quickcheck-laws","description":"QuickCheck tests for law abiding core classes","fork":true,"url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws","forks_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/forks","keys_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/teams","hooks_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/hooks","issue_events_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/issues/events{/number}","events_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/events","assignees_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/assignees{/user}","branches_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/branches{/branch}","tags_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/tags","blobs_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/git/refs{/sha}","trees_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/statuses/{sha}","languages_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/languages","stargazers_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/stargazers","contributors_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/contributors","subscribers_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/subscribers","subscription_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/subscription","commits_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/commits{/sha}","git_commits_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/git/commits{/sha}","comments_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/comments{/number}","issue_comment_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/issues/comments{/number}","contents_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/contents/{+path}","compare_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/merges","archive_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/downloads","issues_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/issues{/number}","pulls_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/pulls{/number}","milestones_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/milestones{/number}","notifications_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/labels{/name}","releases_url":"https://api.github.com/repos/DavidHarrison/purescript-quickcheck-laws/releases{/id}","created_at":"2015-07-05T20:07:10Z","updated_at":"2015-07-05T20:07:10Z","pushed_at":"2015-07-07T05:11:12Z","git_url":"git://github.com/DavidHarrison/purescript-quickcheck-laws.git","ssh_url":"git@github.com:DavidHarrison/purescript-quickcheck-laws.git","clone_url":"https://github.com/DavidHarrison/purescript-quickcheck-laws.git","svn_url":"https://github.com/DavidHarrison/purescript-quickcheck-laws","homepage":"","size":134,"stargazers_count":0,"watchers_count":0,"language":"PureScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"garyb:master","ref":"master","sha":"9b7b17ed9844d1561c948213576002f482cbb997","user":{"login":"garyb","id":693642,"avatar_url":"https://avatars.githubusercontent.com/u/693642?v=3","gravatar_id":"","url":"https://api.github.com/users/garyb","html_url":"https://github.com/garyb","followers_url":"https://api.github.com/users/garyb/followers","following_url":"https://api.github.com/users/garyb/following{/other_user}","gists_url":"https://api.github.com/users/garyb/gists{/gist_id}","starred_url":"https://api.github.com/users/garyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyb/subscriptions","organizations_url":"https://api.github.com/users/garyb/orgs","repos_url":"https://api.github.com/users/garyb/repos","events_url":"https://api.github.com/users/garyb/events{/privacy}","received_events_url":"https://api.github.com/users/garyb/received_events","type":"User","site_admin":false},"repo":{"id":33361167,"name":"purescript-quickcheck-laws","full_name":"garyb/purescript-quickcheck-laws","owner":{"login":"garyb","id":693642,"avatar_url":"https://avatars.githubusercontent.com/u/693642?v=3","gravatar_id":"","url":"https://api.github.com/users/garyb","html_url":"https://github.com/garyb","followers_url":"https://api.github.com/users/garyb/followers","following_url":"https://api.github.com/users/garyb/following{/other_user}","gists_url":"https://api.github.com/users/garyb/gists{/gist_id}","starred_url":"https://api.github.com/users/garyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyb/subscriptions","organizations_url":"https://api.github.com/users/garyb/orgs","repos_url":"https://api.github.com/users/garyb/repos","events_url":"https://api.github.com/users/garyb/events{/privacy}","received_events_url":"https://api.github.com/users/garyb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garyb/purescript-quickcheck-laws","description":"QuickCheck tests for law abiding core classes","fork":false,"url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws","forks_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/forks","keys_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/teams","hooks_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/hooks","issue_events_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/events{/number}","events_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/events","assignees_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/assignees{/user}","branches_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/branches{/branch}","tags_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/tags","blobs_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/git/refs{/sha}","trees_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/statuses/{sha}","languages_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/languages","stargazers_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/stargazers","contributors_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/contributors","subscribers_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/subscribers","subscription_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/subscription","commits_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/commits{/sha}","git_commits_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/git/commits{/sha}","comments_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/comments{/number}","issue_comment_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/comments{/number}","contents_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/contents/{+path}","compare_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/merges","archive_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/downloads","issues_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues{/number}","pulls_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls{/number}","milestones_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/milestones{/number}","notifications_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/labels{/name}","releases_url":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/releases{/id}","created_at":"2015-04-03T11:54:06Z","updated_at":"2015-06-29T19:34:44Z","pushed_at":"2015-06-11T02:13:43Z","git_url":"git://github.com/garyb/purescript-quickcheck-laws.git","ssh_url":"git@github.com:garyb/purescript-quickcheck-laws.git","clone_url":"https://github.com/garyb/purescript-quickcheck-laws.git","svn_url":"https://github.com/garyb/purescript-quickcheck-laws","homepage":"","size":213,"stargazers_count":1,"watchers_count":1,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8"},"html":{"href":"https://github.com/garyb/purescript-quickcheck-laws/pull/8"},"issue":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/8"},"comments":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/garyb/purescript-quickcheck-laws/statuses/b5d1b5b5b08ac7142e4dc02f389591299864f84c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":313,"deletions":286,"changed_files":40}}