{"action":"opened","number":2950,"pull_request":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950","id":58425100,"html_url":"https://github.com/idris-lang/Idris-dev/pull/2950","diff_url":"https://github.com/idris-lang/Idris-dev/pull/2950.diff","patch_url":"https://github.com/idris-lang/Idris-dev/pull/2950.patch","issue_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2950","number":2950,"state":"open","locked":false,"title":"Minor haskell code readability improvements for AST modules","user":{"login":"Heather","id":2656965,"avatar_url":"https://avatars.githubusercontent.com/u/2656965?v=3","gravatar_id":"","url":"https://api.github.com/users/Heather","html_url":"https://github.com/Heather","followers_url":"https://api.github.com/users/Heather/followers","following_url":"https://api.github.com/users/Heather/following{/other_user}","gists_url":"https://api.github.com/users/Heather/gists{/gist_id}","starred_url":"https://api.github.com/users/Heather/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heather/subscriptions","organizations_url":"https://api.github.com/users/Heather/orgs","repos_url":"https://api.github.com/users/Heather/repos","events_url":"https://api.github.com/users/Heather/events{/privacy}","received_events_url":"https://api.github.com/users/Heather/received_events","type":"User","site_admin":false},"body":"replace if else with list comprehension syntax, use pipes `.` instead of applieng `map` two times. used to indent `=` because it was easier for myself to read/see difference between values over AST patterns, not sure if that could be helpful for others","created_at":"2016-02-05T12:52:39Z","updated_at":"2016-02-05T12:52:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950/commits","review_comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950/comments","review_comment_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2950/comments","statuses_url":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/295182851cfbf76e6be2a2139da0b8b13f7c4621","head":{"label":"Heather:colours","ref":"colours","sha":"295182851cfbf76e6be2a2139da0b8b13f7c4621","user":{"login":"Heather","id":2656965,"avatar_url":"https://avatars.githubusercontent.com/u/2656965?v=3","gravatar_id":"","url":"https://api.github.com/users/Heather","html_url":"https://github.com/Heather","followers_url":"https://api.github.com/users/Heather/followers","following_url":"https://api.github.com/users/Heather/following{/other_user}","gists_url":"https://api.github.com/users/Heather/gists{/gist_id}","starred_url":"https://api.github.com/users/Heather/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heather/subscriptions","organizations_url":"https://api.github.com/users/Heather/orgs","repos_url":"https://api.github.com/users/Heather/repos","events_url":"https://api.github.com/users/Heather/events{/privacy}","received_events_url":"https://api.github.com/users/Heather/received_events","type":"User","site_admin":false},"repo":{"id":21048721,"name":"Idris-dev","full_name":"Heather/Idris-dev","owner":{"login":"Heather","id":2656965,"avatar_url":"https://avatars.githubusercontent.com/u/2656965?v=3","gravatar_id":"","url":"https://api.github.com/users/Heather","html_url":"https://github.com/Heather","followers_url":"https://api.github.com/users/Heather/followers","following_url":"https://api.github.com/users/Heather/following{/other_user}","gists_url":"https://api.github.com/users/Heather/gists{/gist_id}","starred_url":"https://api.github.com/users/Heather/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heather/subscriptions","organizations_url":"https://api.github.com/users/Heather/orgs","repos_url":"https://api.github.com/users/Heather/repos","events_url":"https://api.github.com/users/Heather/events{/privacy}","received_events_url":"https://api.github.com/users/Heather/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Heather/Idris-dev","description":"A Dependently Typed Functional Programming Language","fork":true,"url":"https://api.github.com/repos/Heather/Idris-dev","forks_url":"https://api.github.com/repos/Heather/Idris-dev/forks","keys_url":"https://api.github.com/repos/Heather/Idris-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Heather/Idris-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Heather/Idris-dev/teams","hooks_url":"https://api.github.com/repos/Heather/Idris-dev/hooks","issue_events_url":"https://api.github.com/repos/Heather/Idris-dev/issues/events{/number}","events_url":"https://api.github.com/repos/Heather/Idris-dev/events","assignees_url":"https://api.github.com/repos/Heather/Idris-dev/assignees{/user}","branches_url":"https://api.github.com/repos/Heather/Idris-dev/branches{/branch}","tags_url":"https://api.github.com/repos/Heather/Idris-dev/tags","blobs_url":"https://api.github.com/repos/Heather/Idris-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Heather/Idris-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Heather/Idris-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Heather/Idris-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Heather/Idris-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/Heather/Idris-dev/languages","stargazers_url":"https://api.github.com/repos/Heather/Idris-dev/stargazers","contributors_url":"https://api.github.com/repos/Heather/Idris-dev/contributors","subscribers_url":"https://api.github.com/repos/Heather/Idris-dev/subscribers","subscription_url":"https://api.github.com/repos/Heather/Idris-dev/subscription","commits_url":"https://api.github.com/repos/Heather/Idris-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Heather/Idris-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Heather/Idris-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Heather/Idris-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Heather/Idris-dev/contents/{+path}","compare_url":"https://api.github.com/repos/Heather/Idris-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Heather/Idris-dev/merges","archive_url":"https://api.github.com/repos/Heather/Idris-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Heather/Idris-dev/downloads","issues_url":"https://api.github.com/repos/Heather/Idris-dev/issues{/number}","pulls_url":"https://api.github.com/repos/Heather/Idris-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/Heather/Idris-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/Heather/Idris-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Heather/Idris-dev/labels{/name}","releases_url":"https://api.github.com/repos/Heather/Idris-dev/releases{/id}","deployments_url":"https://api.github.com/repos/Heather/Idris-dev/deployments","created_at":"2014-06-20T18:48:25Z","updated_at":"2016-01-20T13:30:59Z","pushed_at":"2016-02-05T12:46:11Z","git_url":"git://github.com/Heather/Idris-dev.git","ssh_url":"git@github.com:Heather/Idris-dev.git","clone_url":"https://github.com/Heather/Idris-dev.git","svn_url":"https://github.com/Heather/Idris-dev","homepage":"http://idris-lang.org","size":29805,"stargazers_count":2,"watchers_count":2,"language":"Haskell","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":2,"default_branch":"master"}},"base":{"label":"idris-lang:master","ref":"master","sha":"0cbea4abaa4f876c94f3c681379f9c13e9688777","user":{"login":"idris-lang","id":5552910,"avatar_url":"https://avatars.githubusercontent.com/u/5552910?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-lang","html_url":"https://github.com/idris-lang","followers_url":"https://api.github.com/users/idris-lang/followers","following_url":"https://api.github.com/users/idris-lang/following{/other_user}","gists_url":"https://api.github.com/users/idris-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-lang/subscriptions","organizations_url":"https://api.github.com/users/idris-lang/orgs","repos_url":"https://api.github.com/users/idris-lang/repos","events_url":"https://api.github.com/users/idris-lang/events{/privacy}","received_events_url":"https://api.github.com/users/idris-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":2386778,"name":"Idris-dev","full_name":"idris-lang/Idris-dev","owner":{"login":"idris-lang","id":5552910,"avatar_url":"https://avatars.githubusercontent.com/u/5552910?v=3","gravatar_id":"","url":"https://api.github.com/users/idris-lang","html_url":"https://github.com/idris-lang","followers_url":"https://api.github.com/users/idris-lang/followers","following_url":"https://api.github.com/users/idris-lang/following{/other_user}","gists_url":"https://api.github.com/users/idris-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/idris-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris-lang/subscriptions","organizations_url":"https://api.github.com/users/idris-lang/orgs","repos_url":"https://api.github.com/users/idris-lang/repos","events_url":"https://api.github.com/users/idris-lang/events{/privacy}","received_events_url":"https://api.github.com/users/idris-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idris-lang/Idris-dev","description":"A Dependently Typed Functional Programming Language","fork":false,"url":"https://api.github.com/repos/idris-lang/Idris-dev","forks_url":"https://api.github.com/repos/idris-lang/Idris-dev/forks","keys_url":"https://api.github.com/repos/idris-lang/Idris-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idris-lang/Idris-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idris-lang/Idris-dev/teams","hooks_url":"https://api.github.com/repos/idris-lang/Idris-dev/hooks","issue_events_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/events{/number}","events_url":"https://api.github.com/repos/idris-lang/Idris-dev/events","assignees_url":"https://api.github.com/repos/idris-lang/Idris-dev/assignees{/user}","branches_url":"https://api.github.com/repos/idris-lang/Idris-dev/branches{/branch}","tags_url":"https://api.github.com/repos/idris-lang/Idris-dev/tags","blobs_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/idris-lang/Idris-dev/languages","stargazers_url":"https://api.github.com/repos/idris-lang/Idris-dev/stargazers","contributors_url":"https://api.github.com/repos/idris-lang/Idris-dev/contributors","subscribers_url":"https://api.github.com/repos/idris-lang/Idris-dev/subscribers","subscription_url":"https://api.github.com/repos/idris-lang/Idris-dev/subscription","commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/idris-lang/Idris-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/idris-lang/Idris-dev/contents/{+path}","compare_url":"https://api.github.com/repos/idris-lang/Idris-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idris-lang/Idris-dev/merges","archive_url":"https://api.github.com/repos/idris-lang/Idris-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idris-lang/Idris-dev/downloads","issues_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues{/number}","pulls_url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/idris-lang/Idris-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/idris-lang/Idris-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idris-lang/Idris-dev/labels{/name}","releases_url":"https://api.github.com/repos/idris-lang/Idris-dev/releases{/id}","deployments_url":"https://api.github.com/repos/idris-lang/Idris-dev/deployments","created_at":"2011-09-14T16:55:49Z","updated_at":"2016-02-05T06:53:28Z","pushed_at":"2016-02-05T09:35:44Z","git_url":"git://github.com/idris-lang/Idris-dev.git","ssh_url":"git@github.com:idris-lang/Idris-dev.git","clone_url":"https://github.com/idris-lang/Idris-dev.git","svn_url":"https://github.com/idris-lang/Idris-dev","homepage":"http://idris-lang.org","size":30937,"stargazers_count":1103,"watchers_count":1103,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":307,"mirror_url":null,"open_issues_count":463,"forks":307,"open_issues":463,"watchers":1103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950"},"html":{"href":"https://github.com/idris-lang/Idris-dev/pull/2950"},"issue":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2950"},"comments":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/issues/2950/comments"},"review_comments":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950/comments"},"review_comment":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/2950/commits"},"statuses":{"href":"https://api.github.com/repos/idris-lang/Idris-dev/statuses/295182851cfbf76e6be2a2139da0b8b13f7c4621"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":482,"deletions":480,"changed_files":3}}