{"action":"created","comment":{"url":"https://api.github.com/repos/ambiata/icicle/pulls/comments/42334470","id":42334470,"diff_hunk":"@@ -40,10 +40,12 @@ invariantQ ctx (Query (c:cs) xfinal)\n      | allowWindowsOrGroups inv\n      -> goNotAllowed\n      | otherwise\n-     -> errNotAllowed \"Latest inside a group or distinct is not currently supported. Latest inside a latest is silly, and also not supported\"\n+     -> errNotAllowed \"Latest inside a latest is silly, not supported\"\n     GroupBy _ x\n      | allowWindowsOrGroups inv\n-     -> goX x >> goNotAllowed\n+     -> case cs of\n+         (Latest _ _ : _) -> goX x >> go\n+         _                -> goX x >> goNotAllowed","path":"src/Icicle/Source/Checker/Invariants.hs","position":11,"original_position":11,"commit_id":"d92ae5816bfb7ab9565e3c12200df093cd3469ca","original_commit_id":"d92ae5816bfb7ab9565e3c12200df093cd3469ca","user":{"login":"amosr","id":964498,"avatar_url":"https://avatars.githubusercontent.com/u/964498?v=3","gravatar_id":"","url":"https://api.github.com/users/amosr","html_url":"https://github.com/amosr","followers_url":"https://api.github.com/users/amosr/followers","following_url":"https://api.github.com/users/amosr/following{/other_user}","gists_url":"https://api.github.com/users/amosr/gists{/gist_id}","starred_url":"https://api.github.com/users/amosr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amosr/subscriptions","organizations_url":"https://api.github.com/users/amosr/orgs","repos_url":"https://api.github.com/users/amosr/repos","events_url":"https://api.github.com/users/amosr/events{/privacy}","received_events_url":"https://api.github.com/users/amosr/received_events","type":"User","site_admin":false},"body":"ideally we'll eventually allow group-in-group and latest-in-latest so that we can throw this away!","created_at":"2015-10-19T03:33:57Z","updated_at":"2015-10-19T03:33:57Z","html_url":"https://github.com/ambiata/icicle/pull/145#discussion_r42334470","pull_request_url":"https://api.github.com/repos/ambiata/icicle/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/comments/42334470"},"html":{"href":"https://github.com/ambiata/icicle/pull/145#discussion_r42334470"},"pull_request":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/ambiata/icicle/pulls/145","id":48026947,"html_url":"https://github.com/ambiata/icicle/pull/145","diff_url":"https://github.com/ambiata/icicle/pull/145.diff","patch_url":"https://github.com/ambiata/icicle/pull/145.patch","issue_url":"https://api.github.com/repos/ambiata/icicle/issues/145","number":145,"state":"open","locked":false,"title":"change latest to be a fold on buffers","user":{"login":"tranma","id":235039,"avatar_url":"https://avatars.githubusercontent.com/u/235039?v=3","gravatar_id":"","url":"https://api.github.com/users/tranma","html_url":"https://github.com/tranma","followers_url":"https://api.github.com/users/tranma/followers","following_url":"https://api.github.com/users/tranma/following{/other_user}","gists_url":"https://api.github.com/users/tranma/gists{/gist_id}","starred_url":"https://api.github.com/users/tranma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranma/subscriptions","organizations_url":"https://api.github.com/users/tranma/orgs","repos_url":"https://api.github.com/users/tranma/repos","events_url":"https://api.github.com/users/tranma/events{/privacy}","received_events_url":"https://api.github.com/users/tranma/received_events","type":"User","site_admin":false},"body":"...with an abstract buf_t type to be done in C and #included some time later.","created_at":"2015-10-19T02:53:30Z","updated_at":"2015-10-19T03:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00b3d6da86d8c6342aa928dec916dc61a15b2775","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ambiata/icicle/pulls/145/commits","review_comments_url":"https://api.github.com/repos/ambiata/icicle/pulls/145/comments","review_comment_url":"https://api.github.com/repos/ambiata/icicle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ambiata/icicle/issues/145/comments","statuses_url":"https://api.github.com/repos/ambiata/icicle/statuses/d92ae5816bfb7ab9565e3c12200df093cd3469ca","head":{"label":"ambiata:topic/latest","ref":"topic/latest","sha":"d92ae5816bfb7ab9565e3c12200df093cd3469ca","user":{"login":"ambiata","id":1691023,"avatar_url":"https://avatars.githubusercontent.com/u/1691023?v=3","gravatar_id":"","url":"https://api.github.com/users/ambiata","html_url":"https://github.com/ambiata","followers_url":"https://api.github.com/users/ambiata/followers","following_url":"https://api.github.com/users/ambiata/following{/other_user}","gists_url":"https://api.github.com/users/ambiata/gists{/gist_id}","starred_url":"https://api.github.com/users/ambiata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambiata/subscriptions","organizations_url":"https://api.github.com/users/ambiata/orgs","repos_url":"https://api.github.com/users/ambiata/repos","events_url":"https://api.github.com/users/ambiata/events{/privacy}","received_events_url":"https://api.github.com/users/ambiata/received_events","type":"Organization","site_admin":false},"repo":{"id":33146693,"name":"icicle","full_name":"ambiata/icicle","owner":{"login":"ambiata","id":1691023,"avatar_url":"https://avatars.githubusercontent.com/u/1691023?v=3","gravatar_id":"","url":"https://api.github.com/users/ambiata","html_url":"https://github.com/ambiata","followers_url":"https://api.github.com/users/ambiata/followers","following_url":"https://api.github.com/users/ambiata/following{/other_user}","gists_url":"https://api.github.com/users/ambiata/gists{/gist_id}","starred_url":"https://api.github.com/users/ambiata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambiata/subscriptions","organizations_url":"https://api.github.com/users/ambiata/orgs","repos_url":"https://api.github.com/users/ambiata/repos","events_url":"https://api.github.com/users/ambiata/events{/privacy}","received_events_url":"https://api.github.com/users/ambiata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ambiata/icicle","description":"A streaming query language.","fork":false,"url":"https://api.github.com/repos/ambiata/icicle","forks_url":"https://api.github.com/repos/ambiata/icicle/forks","keys_url":"https://api.github.com/repos/ambiata/icicle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ambiata/icicle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ambiata/icicle/teams","hooks_url":"https://api.github.com/repos/ambiata/icicle/hooks","issue_events_url":"https://api.github.com/repos/ambiata/icicle/issues/events{/number}","events_url":"https://api.github.com/repos/ambiata/icicle/events","assignees_url":"https://api.github.com/repos/ambiata/icicle/assignees{/user}","branches_url":"https://api.github.com/repos/ambiata/icicle/branches{/branch}","tags_url":"https://api.github.com/repos/ambiata/icicle/tags","blobs_url":"https://api.github.com/repos/ambiata/icicle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ambiata/icicle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ambiata/icicle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ambiata/icicle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ambiata/icicle/statuses/{sha}","languages_url":"https://api.github.com/repos/ambiata/icicle/languages","stargazers_url":"https://api.github.com/repos/ambiata/icicle/stargazers","contributors_url":"https://api.github.com/repos/ambiata/icicle/contributors","subscribers_url":"https://api.github.com/repos/ambiata/icicle/subscribers","subscription_url":"https://api.github.com/repos/ambiata/icicle/subscription","commits_url":"https://api.github.com/repos/ambiata/icicle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ambiata/icicle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ambiata/icicle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ambiata/icicle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ambiata/icicle/contents/{+path}","compare_url":"https://api.github.com/repos/ambiata/icicle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ambiata/icicle/merges","archive_url":"https://api.github.com/repos/ambiata/icicle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ambiata/icicle/downloads","issues_url":"https://api.github.com/repos/ambiata/icicle/issues{/number}","pulls_url":"https://api.github.com/repos/ambiata/icicle/pulls{/number}","milestones_url":"https://api.github.com/repos/ambiata/icicle/milestones{/number}","notifications_url":"https://api.github.com/repos/ambiata/icicle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ambiata/icicle/labels{/name}","releases_url":"https://api.github.com/repos/ambiata/icicle/releases{/id}","created_at":"2015-03-30T20:37:02Z","updated_at":"2015-09-18T07:14:43Z","pushed_at":"2015-10-19T03:33:52Z","git_url":"git://github.com/ambiata/icicle.git","ssh_url":"git@github.com:ambiata/icicle.git","clone_url":"https://github.com/ambiata/icicle.git","svn_url":"https://github.com/ambiata/icicle","homepage":null,"size":11488,"stargazers_count":7,"watchers_count":7,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":7,"default_branch":"master"}},"base":{"label":"ambiata:master","ref":"master","sha":"2a808f6b2a545fed71a4da440f1401bc8a3b14bf","user":{"login":"ambiata","id":1691023,"avatar_url":"https://avatars.githubusercontent.com/u/1691023?v=3","gravatar_id":"","url":"https://api.github.com/users/ambiata","html_url":"https://github.com/ambiata","followers_url":"https://api.github.com/users/ambiata/followers","following_url":"https://api.github.com/users/ambiata/following{/other_user}","gists_url":"https://api.github.com/users/ambiata/gists{/gist_id}","starred_url":"https://api.github.com/users/ambiata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambiata/subscriptions","organizations_url":"https://api.github.com/users/ambiata/orgs","repos_url":"https://api.github.com/users/ambiata/repos","events_url":"https://api.github.com/users/ambiata/events{/privacy}","received_events_url":"https://api.github.com/users/ambiata/received_events","type":"Organization","site_admin":false},"repo":{"id":33146693,"name":"icicle","full_name":"ambiata/icicle","owner":{"login":"ambiata","id":1691023,"avatar_url":"https://avatars.githubusercontent.com/u/1691023?v=3","gravatar_id":"","url":"https://api.github.com/users/ambiata","html_url":"https://github.com/ambiata","followers_url":"https://api.github.com/users/ambiata/followers","following_url":"https://api.github.com/users/ambiata/following{/other_user}","gists_url":"https://api.github.com/users/ambiata/gists{/gist_id}","starred_url":"https://api.github.com/users/ambiata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambiata/subscriptions","organizations_url":"https://api.github.com/users/ambiata/orgs","repos_url":"https://api.github.com/users/ambiata/repos","events_url":"https://api.github.com/users/ambiata/events{/privacy}","received_events_url":"https://api.github.com/users/ambiata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ambiata/icicle","description":"A streaming query language.","fork":false,"url":"https://api.github.com/repos/ambiata/icicle","forks_url":"https://api.github.com/repos/ambiata/icicle/forks","keys_url":"https://api.github.com/repos/ambiata/icicle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ambiata/icicle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ambiata/icicle/teams","hooks_url":"https://api.github.com/repos/ambiata/icicle/hooks","issue_events_url":"https://api.github.com/repos/ambiata/icicle/issues/events{/number}","events_url":"https://api.github.com/repos/ambiata/icicle/events","assignees_url":"https://api.github.com/repos/ambiata/icicle/assignees{/user}","branches_url":"https://api.github.com/repos/ambiata/icicle/branches{/branch}","tags_url":"https://api.github.com/repos/ambiata/icicle/tags","blobs_url":"https://api.github.com/repos/ambiata/icicle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ambiata/icicle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ambiata/icicle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ambiata/icicle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ambiata/icicle/statuses/{sha}","languages_url":"https://api.github.com/repos/ambiata/icicle/languages","stargazers_url":"https://api.github.com/repos/ambiata/icicle/stargazers","contributors_url":"https://api.github.com/repos/ambiata/icicle/contributors","subscribers_url":"https://api.github.com/repos/ambiata/icicle/subscribers","subscription_url":"https://api.github.com/repos/ambiata/icicle/subscription","commits_url":"https://api.github.com/repos/ambiata/icicle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ambiata/icicle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ambiata/icicle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ambiata/icicle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ambiata/icicle/contents/{+path}","compare_url":"https://api.github.com/repos/ambiata/icicle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ambiata/icicle/merges","archive_url":"https://api.github.com/repos/ambiata/icicle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ambiata/icicle/downloads","issues_url":"https://api.github.com/repos/ambiata/icicle/issues{/number}","pulls_url":"https://api.github.com/repos/ambiata/icicle/pulls{/number}","milestones_url":"https://api.github.com/repos/ambiata/icicle/milestones{/number}","notifications_url":"https://api.github.com/repos/ambiata/icicle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ambiata/icicle/labels{/name}","releases_url":"https://api.github.com/repos/ambiata/icicle/releases{/id}","created_at":"2015-03-30T20:37:02Z","updated_at":"2015-09-18T07:14:43Z","pushed_at":"2015-10-19T03:33:52Z","git_url":"git://github.com/ambiata/icicle.git","ssh_url":"git@github.com:ambiata/icicle.git","clone_url":"https://github.com/ambiata/icicle.git","svn_url":"https://github.com/ambiata/icicle","homepage":null,"size":11488,"stargazers_count":7,"watchers_count":7,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/145"},"html":{"href":"https://github.com/ambiata/icicle/pull/145"},"issue":{"href":"https://api.github.com/repos/ambiata/icicle/issues/145"},"comments":{"href":"https://api.github.com/repos/ambiata/icicle/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ambiata/icicle/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/ambiata/icicle/statuses/d92ae5816bfb7ab9565e3c12200df093cd3469ca"}}}}