{"action":"created","comment":{"url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/comments/70957303","id":70957303,"diff_hunk":"@@ -0,0 +1,785 @@\n+-- Copyright (C) 2013-2016 Carlo Hamalainen <carlo ÄT carlo-hamalainen DOT net>\n+--\n+-- This program is free software: you can redistribute it and/or modify\n+-- it under the terms of the GNU Affero General Public License as published by\n+-- the Free Software Foundation, either version 3 of the License, or\n+-- (at your option) any later version.\n+--\n+-- This program is distributed in the hope that it will be useful,\n+-- but WITHOUT ANY WARRANTY; without even the implied warranty of\n+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+-- GNU Affero General Public License for more details.\n+--\n+-- You should have received a copy of the GNU Affero General Public License\n+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+\n+{-# LANGUAGE CPP                    #-}\n+{-# LANGUAGE Rank2Types             #-}\n+{-# LANGUAGE ScopedTypeVariables    #-}\n+{-# LANGUAGE FlexibleContexts       #-}\n+\n+module Language.Haskell.GhcMod.ImportedFrom (importedFrom) where\n+\n+import Control.Applicative()\n+import Control.Exception\n+import Control.Monad\n+import Control.Monad.Catch\n+import Data.ByteString.Internal (w2c)\n+import Data.Char (isAlpha)\n+import Data.Functor.Identity\n+import Data.IORef\n+import Data.List\n+import Data.List.Split\n+import Data.Maybe\n+import Data.Typeable()\n+import Desugar()\n+import Exception (ghandle)\n+import FastString\n+import GHC\n+import GHC.SYB.Utils()\n+import HscTypes\n+import Language.Haskell.GhcMod\n+import Language.Haskell.GhcMod.DynFlags\n+import Language.Haskell.GhcMod.FileMapping\n+import Language.Haskell.GhcMod.Gap\n+import Language.Haskell.GhcMod.GhcPkg\n+import Language.Haskell.GhcMod.Logging\n+import Language.Haskell.GhcMod.Monad\n+import Language.Haskell.GhcMod.Output\n+import Language.Haskell.GhcMod.SrcUtils (listifySpans)\n+import Outputable\n+import System.Directory\n+import System.Environment()\n+import System.FilePath\n+import System.Process\n+import System.Process.Streaming\n+import TcRnTypes()\n+\n+import qualified Data.ByteString as B.X","path":"Language/Haskell/GhcMod/ImportedFrom.hs","position":55,"original_position":58,"commit_id":"47becac075cbce805e3b310fad8a238d3fa51475","original_commit_id":"6339f63a93569704cfe92be35e0c1eb11754901a","user":{"login":"carlohamalainen","id":815386,"avatar_url":"https://avatars.githubusercontent.com/u/815386?v=3","gravatar_id":"","url":"https://api.github.com/users/carlohamalainen","html_url":"https://github.com/carlohamalainen","followers_url":"https://api.github.com/users/carlohamalainen/followers","following_url":"https://api.github.com/users/carlohamalainen/following{/other_user}","gists_url":"https://api.github.com/users/carlohamalainen/gists{/gist_id}","starred_url":"https://api.github.com/users/carlohamalainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlohamalainen/subscriptions","organizations_url":"https://api.github.com/users/carlohamalainen/orgs","repos_url":"https://api.github.com/users/carlohamalainen/repos","events_url":"https://api.github.com/users/carlohamalainen/events{/privacy}","received_events_url":"https://api.github.com/users/carlohamalainen/received_events","type":"User","site_admin":false},"body":"```\r\ncommit ffc755b11edf0693856696e91b05962eeb957f1e\r\nAuthor: Carlo Hamalainen <carlo@carlo-hamalainen.net>\r\nDate:   Fri Jul 15 21:18:08 2016 +1000\r\n\r\n    Remove unused import.\r\n```","created_at":"2016-07-15T11:18:43Z","updated_at":"2016-07-15T11:18:43Z","html_url":"https://github.com/DanielG/ghc-mod/pull/810#discussion_r70957303","pull_request_url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810","_links":{"self":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/comments/70957303"},"html":{"href":"https://github.com/DanielG/ghc-mod/pull/810#discussion_r70957303"},"pull_request":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810"}}},"pull_request":{"url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810","id":77205466,"html_url":"https://github.com/DanielG/ghc-mod/pull/810","diff_url":"https://github.com/DanielG/ghc-mod/pull/810.diff","patch_url":"https://github.com/DanielG/ghc-mod/pull/810.patch","issue_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/810","number":810,"state":"open","locked":false,"title":"Merge ghc-imported-from into ghc-mod","user":{"login":"carlohamalainen","id":815386,"avatar_url":"https://avatars.githubusercontent.com/u/815386?v=3","gravatar_id":"","url":"https://api.github.com/users/carlohamalainen","html_url":"https://github.com/carlohamalainen","followers_url":"https://api.github.com/users/carlohamalainen/followers","following_url":"https://api.github.com/users/carlohamalainen/following{/other_user}","gists_url":"https://api.github.com/users/carlohamalainen/gists{/gist_id}","starred_url":"https://api.github.com/users/carlohamalainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlohamalainen/subscriptions","organizations_url":"https://api.github.com/users/carlohamalainen/orgs","repos_url":"https://api.github.com/users/carlohamalainen/repos","events_url":"https://api.github.com/users/carlohamalainen/events{/privacy}","received_events_url":"https://api.github.com/users/carlohamalainen/received_events","type":"User","site_admin":false},"body":"Merging ghc-imported-from into ghc-mod: https://github.com/carlohamalainen/ghc-imported-from","created_at":"2016-07-12T22:55:23Z","updated_at":"2016-07-15T11:18:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ed9d0bd9aa22a7e2cf63cd4cdced0c6323d8d1e","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DanielG/ghc-mod/milestones/8","html_url":"https://github.com/DanielG/ghc-mod/milestones/v5.7.0.0","labels_url":"https://api.github.com/repos/DanielG/ghc-mod/milestones/8/labels","id":1766326,"number":8,"title":"v5.7.0.0","description":"","creator":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2016-05-14T18:51:07Z","updated_at":"2016-07-14T21:55:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810/commits","review_comments_url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810/comments","review_comment_url":"https://api.github.com/repos/DanielG/ghc-mod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/810/comments","statuses_url":"https://api.github.com/repos/DanielG/ghc-mod/statuses/47becac075cbce805e3b310fad8a238d3fa51475","head":{"label":"carlohamalainen:ghc-imported-from-merge-vs-master","ref":"ghc-imported-from-merge-vs-master","sha":"47becac075cbce805e3b310fad8a238d3fa51475","user":{"login":"carlohamalainen","id":815386,"avatar_url":"https://avatars.githubusercontent.com/u/815386?v=3","gravatar_id":"","url":"https://api.github.com/users/carlohamalainen","html_url":"https://github.com/carlohamalainen","followers_url":"https://api.github.com/users/carlohamalainen/followers","following_url":"https://api.github.com/users/carlohamalainen/following{/other_user}","gists_url":"https://api.github.com/users/carlohamalainen/gists{/gist_id}","starred_url":"https://api.github.com/users/carlohamalainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlohamalainen/subscriptions","organizations_url":"https://api.github.com/users/carlohamalainen/orgs","repos_url":"https://api.github.com/users/carlohamalainen/repos","events_url":"https://api.github.com/users/carlohamalainen/events{/privacy}","received_events_url":"https://api.github.com/users/carlohamalainen/received_events","type":"User","site_admin":false},"repo":{"id":19340851,"name":"ghc-mod","full_name":"carlohamalainen/ghc-mod","owner":{"login":"carlohamalainen","id":815386,"avatar_url":"https://avatars.githubusercontent.com/u/815386?v=3","gravatar_id":"","url":"https://api.github.com/users/carlohamalainen","html_url":"https://github.com/carlohamalainen","followers_url":"https://api.github.com/users/carlohamalainen/followers","following_url":"https://api.github.com/users/carlohamalainen/following{/other_user}","gists_url":"https://api.github.com/users/carlohamalainen/gists{/gist_id}","starred_url":"https://api.github.com/users/carlohamalainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlohamalainen/subscriptions","organizations_url":"https://api.github.com/users/carlohamalainen/orgs","repos_url":"https://api.github.com/users/carlohamalainen/repos","events_url":"https://api.github.com/users/carlohamalainen/events{/privacy}","received_events_url":"https://api.github.com/users/carlohamalainen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlohamalainen/ghc-mod","description":"Happy Haskell programming for editors","fork":true,"url":"https://api.github.com/repos/carlohamalainen/ghc-mod","forks_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/forks","keys_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/teams","hooks_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/hooks","issue_events_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/issues/events{/number}","events_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/events","assignees_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/assignees{/user}","branches_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/branches{/branch}","tags_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/tags","blobs_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/statuses/{sha}","languages_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/languages","stargazers_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/stargazers","contributors_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/contributors","subscribers_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/subscribers","subscription_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/subscription","commits_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/issues/comments{/number}","contents_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/contents/{+path}","compare_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/merges","archive_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/downloads","issues_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/issues{/number}","pulls_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/pulls{/number}","milestones_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/milestones{/number}","notifications_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/labels{/name}","releases_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/releases{/id}","deployments_url":"https://api.github.com/repos/carlohamalainen/ghc-mod/deployments","created_at":"2014-05-01T09:40:31Z","updated_at":"2016-01-09T23:46:40Z","pushed_at":"2016-07-15T11:16:30Z","git_url":"git://github.com/carlohamalainen/ghc-mod.git","ssh_url":"git@github.com:carlohamalainen/ghc-mod.git","clone_url":"https://github.com/carlohamalainen/ghc-mod.git","svn_url":"https://github.com/carlohamalainen/ghc-mod","homepage":"http://www.mew.org/~kazu/proj/ghc-mod/","size":2904,"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":"DanielG:master","ref":"master","sha":"8a7e7f9c1b8b610b8140761c9d403ce7340e8375","user":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"repo":{"id":555313,"name":"ghc-mod","full_name":"DanielG/ghc-mod","owner":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanielG/ghc-mod","description":"Happy Haskell Hacking for editors","fork":false,"url":"https://api.github.com/repos/DanielG/ghc-mod","forks_url":"https://api.github.com/repos/DanielG/ghc-mod/forks","keys_url":"https://api.github.com/repos/DanielG/ghc-mod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanielG/ghc-mod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanielG/ghc-mod/teams","hooks_url":"https://api.github.com/repos/DanielG/ghc-mod/hooks","issue_events_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/events{/number}","events_url":"https://api.github.com/repos/DanielG/ghc-mod/events","assignees_url":"https://api.github.com/repos/DanielG/ghc-mod/assignees{/user}","branches_url":"https://api.github.com/repos/DanielG/ghc-mod/branches{/branch}","tags_url":"https://api.github.com/repos/DanielG/ghc-mod/tags","blobs_url":"https://api.github.com/repos/DanielG/ghc-mod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanielG/ghc-mod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanielG/ghc-mod/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanielG/ghc-mod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanielG/ghc-mod/statuses/{sha}","languages_url":"https://api.github.com/repos/DanielG/ghc-mod/languages","stargazers_url":"https://api.github.com/repos/DanielG/ghc-mod/stargazers","contributors_url":"https://api.github.com/repos/DanielG/ghc-mod/contributors","subscribers_url":"https://api.github.com/repos/DanielG/ghc-mod/subscribers","subscription_url":"https://api.github.com/repos/DanielG/ghc-mod/subscription","commits_url":"https://api.github.com/repos/DanielG/ghc-mod/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanielG/ghc-mod/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanielG/ghc-mod/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanielG/ghc-mod/contents/{+path}","compare_url":"https://api.github.com/repos/DanielG/ghc-mod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanielG/ghc-mod/merges","archive_url":"https://api.github.com/repos/DanielG/ghc-mod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanielG/ghc-mod/downloads","issues_url":"https://api.github.com/repos/DanielG/ghc-mod/issues{/number}","pulls_url":"https://api.github.com/repos/DanielG/ghc-mod/pulls{/number}","milestones_url":"https://api.github.com/repos/DanielG/ghc-mod/milestones{/number}","notifications_url":"https://api.github.com/repos/DanielG/ghc-mod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanielG/ghc-mod/labels{/name}","releases_url":"https://api.github.com/repos/DanielG/ghc-mod/releases{/id}","deployments_url":"https://api.github.com/repos/DanielG/ghc-mod/deployments","created_at":"2010-03-10T03:02:30Z","updated_at":"2016-07-14T14:00:56Z","pushed_at":"2016-07-15T11:16:31Z","git_url":"git://github.com/DanielG/ghc-mod.git","ssh_url":"git@github.com:DanielG/ghc-mod.git","clone_url":"https://github.com/DanielG/ghc-mod.git","svn_url":"https://github.com/DanielG/ghc-mod","homepage":"","size":4378,"stargazers_count":503,"watchers_count":503,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":152,"mirror_url":null,"open_issues_count":110,"forks":152,"open_issues":110,"watchers":503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810"},"html":{"href":"https://github.com/DanielG/ghc-mod/pull/810"},"issue":{"href":"https://api.github.com/repos/DanielG/ghc-mod/issues/810"},"comments":{"href":"https://api.github.com/repos/DanielG/ghc-mod/issues/810/comments"},"review_comments":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810/comments"},"review_comment":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DanielG/ghc-mod/pulls/810/commits"},"statuses":{"href":"https://api.github.com/repos/DanielG/ghc-mod/statuses/47becac075cbce805e3b310fad8a238d3fa51475"}}}}
{"actor":{"display_login":"carlohamalainen"}}