{"action":"created","comment":{"url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/comments/32084758","id":32084758,"diff_hunk":"@@ -242,12 +256,41 @@ parsePragma   :: Located String -> IO Config\n parsePragma s = withArgs [val s] $ cmdArgsRun config\n \n ---------------------------------------------------------------------------------------\n+withCabal :: Config -> IO Config\n+---------------------------------------------------------------------------------------\n+withCabal cfg\n+  | cabalDir cfg = withCabal' cfg\n+  | otherwise    = return cfg\n+\n+withCabal' cfg = do\n+  putStrLn $ \"addCabalDirs: \" ++ tgt\n+  io <- cabalInfo tgt\n+  case io of\n+    Just i  -> return $ fixCabalDirs' cfg i\n+    Nothing -> do putStrLn \"Cannot find .cabal information, proceeding without.\"","path":"src/Language/Haskell/Liquid/CmdLine.hs","position":179,"original_position":179,"commit_id":"d63b633ce7a7103121e292a5a46ffbe6ac949487","original_commit_id":"d63b633ce7a7103121e292a5a46ffbe6ac949487","user":{"login":"gridaphobe","id":201997,"avatar_url":"https://avatars.githubusercontent.com/u/201997?v=3","gravatar_id":"","url":"https://api.github.com/users/gridaphobe","html_url":"https://github.com/gridaphobe","followers_url":"https://api.github.com/users/gridaphobe/followers","following_url":"https://api.github.com/users/gridaphobe/following{/other_user}","gists_url":"https://api.github.com/users/gridaphobe/gists{/gist_id}","starred_url":"https://api.github.com/users/gridaphobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gridaphobe/subscriptions","organizations_url":"https://api.github.com/users/gridaphobe/orgs","repos_url":"https://api.github.com/users/gridaphobe/repos","events_url":"https://api.github.com/users/gridaphobe/events{/privacy}","received_events_url":"https://api.github.com/users/gridaphobe/received_events","type":"User","site_admin":false},"body":"Ditto here","created_at":"2015-06-10T02:56:56Z","updated_at":"2015-06-10T02:56:56Z","html_url":"https://github.com/ucsd-progsys/liquidhaskell/pull/404#discussion_r32084758","pull_request_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404","_links":{"self":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/comments/32084758"},"html":{"href":"https://github.com/ucsd-progsys/liquidhaskell/pull/404#discussion_r32084758"},"pull_request":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404"}}},"pull_request":{"url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404","id":37319902,"html_url":"https://github.com/ucsd-progsys/liquidhaskell/pull/404","diff_url":"https://github.com/ucsd-progsys/liquidhaskell/pull/404.diff","patch_url":"https://github.com/ucsd-progsys/liquidhaskell/pull/404.patch","issue_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/404","number":404,"state":"open","locked":false,"title":"Paths","user":{"login":"ranjitjhala","id":1650232,"avatar_url":"https://avatars.githubusercontent.com/u/1650232?v=3","gravatar_id":"","url":"https://api.github.com/users/ranjitjhala","html_url":"https://github.com/ranjitjhala","followers_url":"https://api.github.com/users/ranjitjhala/followers","following_url":"https://api.github.com/users/ranjitjhala/following{/other_user}","gists_url":"https://api.github.com/users/ranjitjhala/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjitjhala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjitjhala/subscriptions","organizations_url":"https://api.github.com/users/ranjitjhala/orgs","repos_url":"https://api.github.com/users/ranjitjhala/repos","events_url":"https://api.github.com/users/ranjitjhala/events{/privacy}","received_events_url":"https://api.github.com/users/ranjitjhala/received_events","type":"User","site_admin":false},"body":"Added `--cabaldir` option to let LH use the `.cabal` file and sandbox information for a target to suitably beef up the search paths and GHC options. This lets us actually run LH conveniently (if slowly!) on itself, and presumably other non-trivial projects. However, looks like the GHC -> Core times are quite bothersome.","created_at":"2015-06-10T02:48:17Z","updated_at":"2015-06-10T02:56:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b969778b26247e243d8f45f79288c4a9068285ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404/commits","review_comments_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404/comments","review_comment_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/404/comments","statuses_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/statuses/d63b633ce7a7103121e292a5a46ffbe6ac949487","head":{"label":"ucsd-progsys:paths","ref":"paths","sha":"d63b633ce7a7103121e292a5a46ffbe6ac949487","user":{"login":"ucsd-progsys","id":2334735,"avatar_url":"https://avatars.githubusercontent.com/u/2334735?v=3","gravatar_id":"","url":"https://api.github.com/users/ucsd-progsys","html_url":"https://github.com/ucsd-progsys","followers_url":"https://api.github.com/users/ucsd-progsys/followers","following_url":"https://api.github.com/users/ucsd-progsys/following{/other_user}","gists_url":"https://api.github.com/users/ucsd-progsys/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsd-progsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsd-progsys/subscriptions","organizations_url":"https://api.github.com/users/ucsd-progsys/orgs","repos_url":"https://api.github.com/users/ucsd-progsys/repos","events_url":"https://api.github.com/users/ucsd-progsys/events{/privacy}","received_events_url":"https://api.github.com/users/ucsd-progsys/received_events","type":"Organization","site_admin":false},"repo":{"id":5913967,"name":"liquidhaskell","full_name":"ucsd-progsys/liquidhaskell","owner":{"login":"ucsd-progsys","id":2334735,"avatar_url":"https://avatars.githubusercontent.com/u/2334735?v=3","gravatar_id":"","url":"https://api.github.com/users/ucsd-progsys","html_url":"https://github.com/ucsd-progsys","followers_url":"https://api.github.com/users/ucsd-progsys/followers","following_url":"https://api.github.com/users/ucsd-progsys/following{/other_user}","gists_url":"https://api.github.com/users/ucsd-progsys/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsd-progsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsd-progsys/subscriptions","organizations_url":"https://api.github.com/users/ucsd-progsys/orgs","repos_url":"https://api.github.com/users/ucsd-progsys/repos","events_url":"https://api.github.com/users/ucsd-progsys/events{/privacy}","received_events_url":"https://api.github.com/users/ucsd-progsys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsd-progsys/liquidhaskell","description":"Liquid Types For Haskell","fork":false,"url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell","forks_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/forks","keys_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/teams","hooks_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/hooks","issue_events_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/events{/number}","events_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/events","assignees_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/assignees{/user}","branches_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/branches{/branch}","tags_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/tags","blobs_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/languages","stargazers_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/stargazers","contributors_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/contributors","subscribers_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/subscribers","subscription_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/subscription","commits_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/contents/{+path}","compare_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/merges","archive_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/downloads","issues_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues{/number}","pulls_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/labels{/name}","releases_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/releases{/id}","created_at":"2012-09-22T15:06:55Z","updated_at":"2015-05-27T02:55:48Z","pushed_at":"2015-06-10T02:49:13Z","git_url":"git://github.com/ucsd-progsys/liquidhaskell.git","ssh_url":"git@github.com:ucsd-progsys/liquidhaskell.git","clone_url":"https://github.com/ucsd-progsys/liquidhaskell.git","svn_url":"https://github.com/ucsd-progsys/liquidhaskell","homepage":null,"size":67678,"stargazers_count":130,"watchers_count":130,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":75,"forks":20,"open_issues":75,"watchers":130,"default_branch":"master"}},"base":{"label":"ucsd-progsys:master","ref":"master","sha":"98d44491ca1a16d815938b4a4779901b3885fa80","user":{"login":"ucsd-progsys","id":2334735,"avatar_url":"https://avatars.githubusercontent.com/u/2334735?v=3","gravatar_id":"","url":"https://api.github.com/users/ucsd-progsys","html_url":"https://github.com/ucsd-progsys","followers_url":"https://api.github.com/users/ucsd-progsys/followers","following_url":"https://api.github.com/users/ucsd-progsys/following{/other_user}","gists_url":"https://api.github.com/users/ucsd-progsys/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsd-progsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsd-progsys/subscriptions","organizations_url":"https://api.github.com/users/ucsd-progsys/orgs","repos_url":"https://api.github.com/users/ucsd-progsys/repos","events_url":"https://api.github.com/users/ucsd-progsys/events{/privacy}","received_events_url":"https://api.github.com/users/ucsd-progsys/received_events","type":"Organization","site_admin":false},"repo":{"id":5913967,"name":"liquidhaskell","full_name":"ucsd-progsys/liquidhaskell","owner":{"login":"ucsd-progsys","id":2334735,"avatar_url":"https://avatars.githubusercontent.com/u/2334735?v=3","gravatar_id":"","url":"https://api.github.com/users/ucsd-progsys","html_url":"https://github.com/ucsd-progsys","followers_url":"https://api.github.com/users/ucsd-progsys/followers","following_url":"https://api.github.com/users/ucsd-progsys/following{/other_user}","gists_url":"https://api.github.com/users/ucsd-progsys/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsd-progsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsd-progsys/subscriptions","organizations_url":"https://api.github.com/users/ucsd-progsys/orgs","repos_url":"https://api.github.com/users/ucsd-progsys/repos","events_url":"https://api.github.com/users/ucsd-progsys/events{/privacy}","received_events_url":"https://api.github.com/users/ucsd-progsys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsd-progsys/liquidhaskell","description":"Liquid Types For Haskell","fork":false,"url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell","forks_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/forks","keys_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/teams","hooks_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/hooks","issue_events_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/events{/number}","events_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/events","assignees_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/assignees{/user}","branches_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/branches{/branch}","tags_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/tags","blobs_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/languages","stargazers_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/stargazers","contributors_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/contributors","subscribers_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/subscribers","subscription_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/subscription","commits_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/contents/{+path}","compare_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/merges","archive_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/downloads","issues_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues{/number}","pulls_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/labels{/name}","releases_url":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/releases{/id}","created_at":"2012-09-22T15:06:55Z","updated_at":"2015-05-27T02:55:48Z","pushed_at":"2015-06-10T02:49:13Z","git_url":"git://github.com/ucsd-progsys/liquidhaskell.git","ssh_url":"git@github.com:ucsd-progsys/liquidhaskell.git","clone_url":"https://github.com/ucsd-progsys/liquidhaskell.git","svn_url":"https://github.com/ucsd-progsys/liquidhaskell","homepage":null,"size":67678,"stargazers_count":130,"watchers_count":130,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":75,"forks":20,"open_issues":75,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404"},"html":{"href":"https://github.com/ucsd-progsys/liquidhaskell/pull/404"},"issue":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/404"},"comments":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/issues/404/comments"},"review_comments":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404/comments"},"review_comment":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/pulls/404/commits"},"statuses":{"href":"https://api.github.com/repos/ucsd-progsys/liquidhaskell/statuses/d63b633ce7a7103121e292a5a46ffbe6ac949487"}}}}