{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/judah/haskeline/pulls/23","id":39212982,"html_url":"https://github.com/judah/haskeline/pull/23","diff_url":"https://github.com/judah/haskeline/pull/23.diff","patch_url":"https://github.com/judah/haskeline/pull/23.patch","issue_url":"https://api.github.com/repos/judah/haskeline/issues/23","number":23,"state":"closed","locked":false,"title":"Quick fix for operator completions GHC Trac issue","user":{"login":"geraldus","id":744471,"avatar_url":"https://avatars.githubusercontent.com/u/744471?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldus","html_url":"https://github.com/geraldus","followers_url":"https://api.github.com/users/geraldus/followers","following_url":"https://api.github.com/users/geraldus/following{/other_user}","gists_url":"https://api.github.com/users/geraldus/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldus/subscriptions","organizations_url":"https://api.github.com/users/geraldus/orgs","repos_url":"https://api.github.com/users/geraldus/repos","events_url":"https://api.github.com/users/geraldus/events{/privacy}","received_events_url":"https://api.github.com/users/geraldus/received_events","type":"User","site_admin":false},"body":"For more details see issue #10576\r\nhttps://ghc.haskell.org/trac/ghc/ticket/10576\r\n\r\nI've tested this with GHC head build, here is some results:\r\n\r\n```\r\nGHCi, version 7.11.20150630: http://www.haskell.org/ghc/  :? for help\r\nPrelude> :complete repl \"ma\"\r\n8 8 \"\"\r\n\"map\"\r\n\"mapM\"\r\n\"mapM_\"\r\n\"mappend\"\r\n\"max\"\r\n\"maxBound\"\r\n\"maximum\"\r\n\"maybe\"\r\n```\r\n```\r\nPrelude> :complete repl \"map con\"\r\n3 3 \"map \"\r\n\"concat\"\r\n\"concatMap\"\r\n\"const\"\r\n```\r\n```\r\nPrelude> :complete repl \">>\"\r\n2 2 \"\"\r\n\">>\"\r\n\">>=\"\r\n```\r\n```\r\nPrelude> :complete repl \"(>>\"\r\n2 2 \"(\"\r\n\">>\"\r\n\">>=\"\r\n```\r\n```\r\nPrelude> :complete repl \"m>>\"\r\n0 0 \"\"\r\n```\r\n```\r\nPrelude> :complete repl \">>m\"\r\n14 14 \">>\"\r\n\"map\"\r\n\"mapM\"\r\n\"mapM_\"\r\n\"mappend\"\r\n\"max\"\r\n\"maxBound\"\r\n\"maximum\"\r\n\"maybe\"\r\n\"mconcat\"\r\n\"mempty\"\r\n\"min\"\r\n\"minBound\"\r\n\"minimum\"\r\n\"mod\"\r\n```\r\n```\r\nPrelude> :complete repl \"map con >>\"\r\n2 2 \"map con \"\r\n\">>\"\r\n\">>=\"\r\n```\r\n\r\nNote, that in case of empty input or only whitespace input it still will return all imported names, but I suppose this is different issue.\r\n\r\nAlso, operator symbols also could be any [non-ascii] Unicode symbol or punctuation, but this stuff is unsupported.","created_at":"2015-07-04T21:07:53Z","updated_at":"2015-07-08T09:49:39Z","closed_at":"2015-07-08T09:49:39Z","merged_at":null,"merge_commit_sha":"3deb32e3319878790c209b6587742ee42845d966","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/judah/haskeline/pulls/23/commits","review_comments_url":"https://api.github.com/repos/judah/haskeline/pulls/23/comments","review_comment_url":"https://api.github.com/repos/judah/haskeline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/judah/haskeline/issues/23/comments","statuses_url":"https://api.github.com/repos/judah/haskeline/statuses/b2f147933bcf7b3ad64411b718528b954cd7d364","head":{"label":"geraldus:fix-trac-10576","ref":"fix-trac-10576","sha":"b2f147933bcf7b3ad64411b718528b954cd7d364","user":{"login":"geraldus","id":744471,"avatar_url":"https://avatars.githubusercontent.com/u/744471?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldus","html_url":"https://github.com/geraldus","followers_url":"https://api.github.com/users/geraldus/followers","following_url":"https://api.github.com/users/geraldus/following{/other_user}","gists_url":"https://api.github.com/users/geraldus/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldus/subscriptions","organizations_url":"https://api.github.com/users/geraldus/orgs","repos_url":"https://api.github.com/users/geraldus/repos","events_url":"https://api.github.com/users/geraldus/events{/privacy}","received_events_url":"https://api.github.com/users/geraldus/received_events","type":"User","site_admin":false},"repo":{"id":38547365,"name":"haskeline","full_name":"geraldus/haskeline","owner":{"login":"geraldus","id":744471,"avatar_url":"https://avatars.githubusercontent.com/u/744471?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldus","html_url":"https://github.com/geraldus","followers_url":"https://api.github.com/users/geraldus/followers","following_url":"https://api.github.com/users/geraldus/following{/other_user}","gists_url":"https://api.github.com/users/geraldus/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldus/subscriptions","organizations_url":"https://api.github.com/users/geraldus/orgs","repos_url":"https://api.github.com/users/geraldus/repos","events_url":"https://api.github.com/users/geraldus/events{/privacy}","received_events_url":"https://api.github.com/users/geraldus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geraldus/haskeline","description":"A Haskell library for line input in command-line programs.  http://trac.haskell.org/haskeline","fork":true,"url":"https://api.github.com/repos/geraldus/haskeline","forks_url":"https://api.github.com/repos/geraldus/haskeline/forks","keys_url":"https://api.github.com/repos/geraldus/haskeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geraldus/haskeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geraldus/haskeline/teams","hooks_url":"https://api.github.com/repos/geraldus/haskeline/hooks","issue_events_url":"https://api.github.com/repos/geraldus/haskeline/issues/events{/number}","events_url":"https://api.github.com/repos/geraldus/haskeline/events","assignees_url":"https://api.github.com/repos/geraldus/haskeline/assignees{/user}","branches_url":"https://api.github.com/repos/geraldus/haskeline/branches{/branch}","tags_url":"https://api.github.com/repos/geraldus/haskeline/tags","blobs_url":"https://api.github.com/repos/geraldus/haskeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geraldus/haskeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geraldus/haskeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/geraldus/haskeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geraldus/haskeline/statuses/{sha}","languages_url":"https://api.github.com/repos/geraldus/haskeline/languages","stargazers_url":"https://api.github.com/repos/geraldus/haskeline/stargazers","contributors_url":"https://api.github.com/repos/geraldus/haskeline/contributors","subscribers_url":"https://api.github.com/repos/geraldus/haskeline/subscribers","subscription_url":"https://api.github.com/repos/geraldus/haskeline/subscription","commits_url":"https://api.github.com/repos/geraldus/haskeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/geraldus/haskeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/geraldus/haskeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/geraldus/haskeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/geraldus/haskeline/contents/{+path}","compare_url":"https://api.github.com/repos/geraldus/haskeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geraldus/haskeline/merges","archive_url":"https://api.github.com/repos/geraldus/haskeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geraldus/haskeline/downloads","issues_url":"https://api.github.com/repos/geraldus/haskeline/issues{/number}","pulls_url":"https://api.github.com/repos/geraldus/haskeline/pulls{/number}","milestones_url":"https://api.github.com/repos/geraldus/haskeline/milestones{/number}","notifications_url":"https://api.github.com/repos/geraldus/haskeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geraldus/haskeline/labels{/name}","releases_url":"https://api.github.com/repos/geraldus/haskeline/releases{/id}","created_at":"2015-07-04T20:52:33Z","updated_at":"2015-07-04T20:52:37Z","pushed_at":"2015-07-04T21:15:56Z","git_url":"git://github.com/geraldus/haskeline.git","ssh_url":"git@github.com:geraldus/haskeline.git","clone_url":"https://github.com/geraldus/haskeline.git","svn_url":"https://github.com/geraldus/haskeline","homepage":null,"size":1206,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"judah:master","ref":"master","sha":"439b19a07419bd4182336aa8d11b4679b379e4fe","user":{"login":"judah","id":49143,"avatar_url":"https://avatars.githubusercontent.com/u/49143?v=3","gravatar_id":"","url":"https://api.github.com/users/judah","html_url":"https://github.com/judah","followers_url":"https://api.github.com/users/judah/followers","following_url":"https://api.github.com/users/judah/following{/other_user}","gists_url":"https://api.github.com/users/judah/gists{/gist_id}","starred_url":"https://api.github.com/users/judah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judah/subscriptions","organizations_url":"https://api.github.com/users/judah/orgs","repos_url":"https://api.github.com/users/judah/repos","events_url":"https://api.github.com/users/judah/events{/privacy}","received_events_url":"https://api.github.com/users/judah/received_events","type":"User","site_admin":false},"repo":{"id":14008276,"name":"haskeline","full_name":"judah/haskeline","owner":{"login":"judah","id":49143,"avatar_url":"https://avatars.githubusercontent.com/u/49143?v=3","gravatar_id":"","url":"https://api.github.com/users/judah","html_url":"https://github.com/judah","followers_url":"https://api.github.com/users/judah/followers","following_url":"https://api.github.com/users/judah/following{/other_user}","gists_url":"https://api.github.com/users/judah/gists{/gist_id}","starred_url":"https://api.github.com/users/judah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judah/subscriptions","organizations_url":"https://api.github.com/users/judah/orgs","repos_url":"https://api.github.com/users/judah/repos","events_url":"https://api.github.com/users/judah/events{/privacy}","received_events_url":"https://api.github.com/users/judah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/judah/haskeline","description":"A Haskell library for line input in command-line programs.  http://trac.haskell.org/haskeline","fork":false,"url":"https://api.github.com/repos/judah/haskeline","forks_url":"https://api.github.com/repos/judah/haskeline/forks","keys_url":"https://api.github.com/repos/judah/haskeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/judah/haskeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/judah/haskeline/teams","hooks_url":"https://api.github.com/repos/judah/haskeline/hooks","issue_events_url":"https://api.github.com/repos/judah/haskeline/issues/events{/number}","events_url":"https://api.github.com/repos/judah/haskeline/events","assignees_url":"https://api.github.com/repos/judah/haskeline/assignees{/user}","branches_url":"https://api.github.com/repos/judah/haskeline/branches{/branch}","tags_url":"https://api.github.com/repos/judah/haskeline/tags","blobs_url":"https://api.github.com/repos/judah/haskeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/judah/haskeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/judah/haskeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/judah/haskeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/judah/haskeline/statuses/{sha}","languages_url":"https://api.github.com/repos/judah/haskeline/languages","stargazers_url":"https://api.github.com/repos/judah/haskeline/stargazers","contributors_url":"https://api.github.com/repos/judah/haskeline/contributors","subscribers_url":"https://api.github.com/repos/judah/haskeline/subscribers","subscription_url":"https://api.github.com/repos/judah/haskeline/subscription","commits_url":"https://api.github.com/repos/judah/haskeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/judah/haskeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/judah/haskeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/judah/haskeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/judah/haskeline/contents/{+path}","compare_url":"https://api.github.com/repos/judah/haskeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/judah/haskeline/merges","archive_url":"https://api.github.com/repos/judah/haskeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/judah/haskeline/downloads","issues_url":"https://api.github.com/repos/judah/haskeline/issues{/number}","pulls_url":"https://api.github.com/repos/judah/haskeline/pulls{/number}","milestones_url":"https://api.github.com/repos/judah/haskeline/milestones{/number}","notifications_url":"https://api.github.com/repos/judah/haskeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/judah/haskeline/labels{/name}","releases_url":"https://api.github.com/repos/judah/haskeline/releases{/id}","created_at":"2013-10-31T05:19:04Z","updated_at":"2015-06-26T07:59:34Z","pushed_at":"2015-07-04T21:15:57Z","git_url":"git://github.com/judah/haskeline.git","ssh_url":"git@github.com:judah/haskeline.git","clone_url":"https://github.com/judah/haskeline.git","svn_url":"https://github.com/judah/haskeline","homepage":null,"size":1552,"stargazers_count":20,"watchers_count":20,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":9,"forks":11,"open_issues":9,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/judah/haskeline/pulls/23"},"html":{"href":"https://github.com/judah/haskeline/pull/23"},"issue":{"href":"https://api.github.com/repos/judah/haskeline/issues/23"},"comments":{"href":"https://api.github.com/repos/judah/haskeline/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/judah/haskeline/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/judah/haskeline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/judah/haskeline/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/judah/haskeline/statuses/b2f147933bcf7b3ad64411b718528b954cd7d364"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":25,"deletions":9,"changed_files":1}}