{"action":"closed","number":263,"pull_request":{"url":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263","id":224330958,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MzMwOTU4","html_url":"https://github.com/ndmitchell/hoogle/pull/263","diff_url":"https://github.com/ndmitchell/hoogle/pull/263.diff","patch_url":"https://github.com/ndmitchell/hoogle/pull/263.patch","issue_url":"https://api.github.com/repos/ndmitchell/hoogle/issues/263","number":263,"state":"closed","locked":false,"title":"Type search","user":{"login":"matt-noonan","id":14229603,"node_id":"MDQ6VXNlcjE0MjI5NjAz","avatar_url":"https://avatars3.githubusercontent.com/u/14229603?v=4","gravatar_id":"","url":"https://api.github.com/users/matt-noonan","html_url":"https://github.com/matt-noonan","followers_url":"https://api.github.com/users/matt-noonan/followers","following_url":"https://api.github.com/users/matt-noonan/following{/other_user}","gists_url":"https://api.github.com/users/matt-noonan/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-noonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-noonan/subscriptions","organizations_url":"https://api.github.com/users/matt-noonan/orgs","repos_url":"https://api.github.com/users/matt-noonan/repos","events_url":"https://api.github.com/users/matt-noonan/events{/privacy}","received_events_url":"https://api.github.com/users/matt-noonan/received_events","type":"User","site_admin":false},"body":"This is a first go at adding type search on top of the fingerprint filtering. The query (or some simple variations of it) is checked against the proposed answer signature by attempting to unify the answer with the query, keeping type variables in the query fixed. The amount of \"unification work\" needed gives a cost, that is later combined with the fingerprint cost and a heuristic about the number of abstract constraints.\r\n\r\nI made a list of test cases (see `todo3.txt`) that did not previously work, to help mark progress as type search is added. Some of the test cases come from github issues, others are things I came across on stackoverflow, twitter, etc. Even this simple type search seems to improve the results quite a bit, compared to fingerprint-only search.\r\n\r\nMy editor setup made some formatting changes via `stylish-haskell`, adding a bit of noise to this PR. Please do let me know if you'd rather I undid those changes.","created_at":"2018-10-19T15:43:35Z","updated_at":"2018-10-20T12:15:22Z","closed_at":"2018-10-20T12:15:22Z","merged_at":"2018-10-20T12:15:22Z","merge_commit_sha":"1d1729c2349f5b66d6005067acd8696d51cae665","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263/commits","review_comments_url":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263/comments","review_comment_url":"https://api.github.com/repos/ndmitchell/hoogle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndmitchell/hoogle/issues/263/comments","statuses_url":"https://api.github.com/repos/ndmitchell/hoogle/statuses/d834f9953113ee616f1b61696e3f0719dc4fa9e6","head":{"label":"matt-noonan:type-search","ref":"type-search","sha":"d834f9953113ee616f1b61696e3f0719dc4fa9e6","user":{"login":"matt-noonan","id":14229603,"node_id":"MDQ6VXNlcjE0MjI5NjAz","avatar_url":"https://avatars3.githubusercontent.com/u/14229603?v=4","gravatar_id":"","url":"https://api.github.com/users/matt-noonan","html_url":"https://github.com/matt-noonan","followers_url":"https://api.github.com/users/matt-noonan/followers","following_url":"https://api.github.com/users/matt-noonan/following{/other_user}","gists_url":"https://api.github.com/users/matt-noonan/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-noonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-noonan/subscriptions","organizations_url":"https://api.github.com/users/matt-noonan/orgs","repos_url":"https://api.github.com/users/matt-noonan/repos","events_url":"https://api.github.com/users/matt-noonan/events{/privacy}","received_events_url":"https://api.github.com/users/matt-noonan/received_events","type":"User","site_admin":false},"repo":{"id":153801297,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM4MDEyOTc=","name":"hoogle","full_name":"matt-noonan/hoogle","private":false,"owner":{"login":"matt-noonan","id":14229603,"node_id":"MDQ6VXNlcjE0MjI5NjAz","avatar_url":"https://avatars3.githubusercontent.com/u/14229603?v=4","gravatar_id":"","url":"https://api.github.com/users/matt-noonan","html_url":"https://github.com/matt-noonan","followers_url":"https://api.github.com/users/matt-noonan/followers","following_url":"https://api.github.com/users/matt-noonan/following{/other_user}","gists_url":"https://api.github.com/users/matt-noonan/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-noonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-noonan/subscriptions","organizations_url":"https://api.github.com/users/matt-noonan/orgs","repos_url":"https://api.github.com/users/matt-noonan/repos","events_url":"https://api.github.com/users/matt-noonan/events{/privacy}","received_events_url":"https://api.github.com/users/matt-noonan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matt-noonan/hoogle","description":"Haskell API search engine","fork":true,"url":"https://api.github.com/repos/matt-noonan/hoogle","forks_url":"https://api.github.com/repos/matt-noonan/hoogle/forks","keys_url":"https://api.github.com/repos/matt-noonan/hoogle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matt-noonan/hoogle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matt-noonan/hoogle/teams","hooks_url":"https://api.github.com/repos/matt-noonan/hoogle/hooks","issue_events_url":"https://api.github.com/repos/matt-noonan/hoogle/issues/events{/number}","events_url":"https://api.github.com/repos/matt-noonan/hoogle/events","assignees_url":"https://api.github.com/repos/matt-noonan/hoogle/assignees{/user}","branches_url":"https://api.github.com/repos/matt-noonan/hoogle/branches{/branch}","tags_url":"https://api.github.com/repos/matt-noonan/hoogle/tags","blobs_url":"https://api.github.com/repos/matt-noonan/hoogle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matt-noonan/hoogle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matt-noonan/hoogle/git/refs{/sha}","trees_url":"https://api.github.com/repos/matt-noonan/hoogle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matt-noonan/hoogle/statuses/{sha}","languages_url":"https://api.github.com/repos/matt-noonan/hoogle/languages","stargazers_url":"https://api.github.com/repos/matt-noonan/hoogle/stargazers","contributors_url":"https://api.github.com/repos/matt-noonan/hoogle/contributors","subscribers_url":"https://api.github.com/repos/matt-noonan/hoogle/subscribers","subscription_url":"https://api.github.com/repos/matt-noonan/hoogle/subscription","commits_url":"https://api.github.com/repos/matt-noonan/hoogle/commits{/sha}","git_commits_url":"https://api.github.com/repos/matt-noonan/hoogle/git/commits{/sha}","comments_url":"https://api.github.com/repos/matt-noonan/hoogle/comments{/number}","issue_comment_url":"https://api.github.com/repos/matt-noonan/hoogle/issues/comments{/number}","contents_url":"https://api.github.com/repos/matt-noonan/hoogle/contents/{+path}","compare_url":"https://api.github.com/repos/matt-noonan/hoogle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matt-noonan/hoogle/merges","archive_url":"https://api.github.com/repos/matt-noonan/hoogle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matt-noonan/hoogle/downloads","issues_url":"https://api.github.com/repos/matt-noonan/hoogle/issues{/number}","pulls_url":"https://api.github.com/repos/matt-noonan/hoogle/pulls{/number}","milestones_url":"https://api.github.com/repos/matt-noonan/hoogle/milestones{/number}","notifications_url":"https://api.github.com/repos/matt-noonan/hoogle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matt-noonan/hoogle/labels{/name}","releases_url":"https://api.github.com/repos/matt-noonan/hoogle/releases{/id}","deployments_url":"https://api.github.com/repos/matt-noonan/hoogle/deployments","created_at":"2018-10-19T15:06:23Z","updated_at":"2018-10-19T15:06:25Z","pushed_at":"2018-10-19T21:14:43Z","git_url":"git://github.com/matt-noonan/hoogle.git","ssh_url":"git@github.com:matt-noonan/hoogle.git","clone_url":"https://github.com/matt-noonan/hoogle.git","svn_url":"https://github.com/matt-noonan/hoogle","homepage":"http://hoogle.haskell.org/","size":5842,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ndmitchell:master","ref":"master","sha":"5d2198b61f4b986e615259a079a5cd00b728eb55","user":{"login":"ndmitchell","id":1651197,"node_id":"MDQ6VXNlcjE2NTExOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1651197?v=4","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"repo":{"id":4075386,"node_id":"MDEwOlJlcG9zaXRvcnk0MDc1Mzg2","name":"hoogle","full_name":"ndmitchell/hoogle","private":false,"owner":{"login":"ndmitchell","id":1651197,"node_id":"MDQ6VXNlcjE2NTExOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1651197?v=4","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ndmitchell/hoogle","description":"Haskell API search engine","fork":false,"url":"https://api.github.com/repos/ndmitchell/hoogle","forks_url":"https://api.github.com/repos/ndmitchell/hoogle/forks","keys_url":"https://api.github.com/repos/ndmitchell/hoogle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndmitchell/hoogle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndmitchell/hoogle/teams","hooks_url":"https://api.github.com/repos/ndmitchell/hoogle/hooks","issue_events_url":"https://api.github.com/repos/ndmitchell/hoogle/issues/events{/number}","events_url":"https://api.github.com/repos/ndmitchell/hoogle/events","assignees_url":"https://api.github.com/repos/ndmitchell/hoogle/assignees{/user}","branches_url":"https://api.github.com/repos/ndmitchell/hoogle/branches{/branch}","tags_url":"https://api.github.com/repos/ndmitchell/hoogle/tags","blobs_url":"https://api.github.com/repos/ndmitchell/hoogle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndmitchell/hoogle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndmitchell/hoogle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndmitchell/hoogle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndmitchell/hoogle/statuses/{sha}","languages_url":"https://api.github.com/repos/ndmitchell/hoogle/languages","stargazers_url":"https://api.github.com/repos/ndmitchell/hoogle/stargazers","contributors_url":"https://api.github.com/repos/ndmitchell/hoogle/contributors","subscribers_url":"https://api.github.com/repos/ndmitchell/hoogle/subscribers","subscription_url":"https://api.github.com/repos/ndmitchell/hoogle/subscription","commits_url":"https://api.github.com/repos/ndmitchell/hoogle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndmitchell/hoogle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndmitchell/hoogle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndmitchell/hoogle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndmitchell/hoogle/contents/{+path}","compare_url":"https://api.github.com/repos/ndmitchell/hoogle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndmitchell/hoogle/merges","archive_url":"https://api.github.com/repos/ndmitchell/hoogle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndmitchell/hoogle/downloads","issues_url":"https://api.github.com/repos/ndmitchell/hoogle/issues{/number}","pulls_url":"https://api.github.com/repos/ndmitchell/hoogle/pulls{/number}","milestones_url":"https://api.github.com/repos/ndmitchell/hoogle/milestones{/number}","notifications_url":"https://api.github.com/repos/ndmitchell/hoogle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndmitchell/hoogle/labels{/name}","releases_url":"https://api.github.com/repos/ndmitchell/hoogle/releases{/id}","deployments_url":"https://api.github.com/repos/ndmitchell/hoogle/deployments","created_at":"2012-04-19T13:23:16Z","updated_at":"2018-10-19T14:14:12Z","pushed_at":"2018-10-20T12:15:22Z","git_url":"git://github.com/ndmitchell/hoogle.git","ssh_url":"git@github.com:ndmitchell/hoogle.git","clone_url":"https://github.com/ndmitchell/hoogle.git","svn_url":"https://github.com/ndmitchell/hoogle","homepage":"http://hoogle.haskell.org/","size":5787,"stargazers_count":345,"watchers_count":345,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":81,"open_issues":79,"watchers":345,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263"},"html":{"href":"https://github.com/ndmitchell/hoogle/pull/263"},"issue":{"href":"https://api.github.com/repos/ndmitchell/hoogle/issues/263"},"comments":{"href":"https://api.github.com/repos/ndmitchell/hoogle/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/ndmitchell/hoogle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndmitchell/hoogle/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/ndmitchell/hoogle/statuses/d834f9953113ee616f1b61696e3f0719dc4fa9e6"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ndmitchell","id":1651197,"node_id":"MDQ6VXNlcjE2NTExOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1651197?v=4","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"comments":7,"review_comments":5,"maintainer_can_modify":false,"commits":10,"additions":697,"deletions":62,"changed_files":5}}
{"actor":{"display_login":"ndmitchell"}}