{"action":"created","comment":{"url":"https://api.github.com/repos/typelevel/cats/pulls/comments/69285656","id":69285656,"diff_hunk":"@@ -133,6 +133,12 @@ object StateT extends StateTInstances {\n \n   def pure[F[_], S, A](a: A)(implicit F: Applicative[F]): StateT[F, S, A] =\n     StateT(s => F.pure((s, a)))\n+\n+  def lift[F[_], S, A](fa: F[A])(implicit F: Applicative[F]): StateT[F, S, A] =\n+    StateT(s => F.map(fa)(a => (s, a)))\n+\n+  def inspect[F[_], S, A](f: S => F[A])(implicit F: Applicative[F]): StateT[F, S, A] =\n+    StateT(s => F.map(f(s))(a => (s, a)))","path":"core/src/main/scala/cats/data/StateT.scala","position":9,"original_position":9,"commit_id":"d7c1bb5671611d79a2c247fa07816818bcd336d8","original_commit_id":"d7c1bb5671611d79a2c247fa07816818bcd336d8","user":{"login":"ceedubs","id":977929,"avatar_url":"https://avatars.githubusercontent.com/u/977929?v=3","gravatar_id":"","url":"https://api.github.com/users/ceedubs","html_url":"https://github.com/ceedubs","followers_url":"https://api.github.com/users/ceedubs/followers","following_url":"https://api.github.com/users/ceedubs/following{/other_user}","gists_url":"https://api.github.com/users/ceedubs/gists{/gist_id}","starred_url":"https://api.github.com/users/ceedubs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceedubs/subscriptions","organizations_url":"https://api.github.com/users/ceedubs/orgs","repos_url":"https://api.github.com/users/ceedubs/repos","events_url":"https://api.github.com/users/ceedubs/events{/privacy}","received_events_url":"https://api.github.com/users/ceedubs/received_events","type":"User","site_admin":false},"body":"Should we have `inspect` take `S => A` and create a separate `inspectF` for `S => F[A]`? It seems like the simple `S => A` case might be pretty common, so it might be nice to make it concise.","created_at":"2016-07-01T11:24:18Z","updated_at":"2016-07-01T11:24:18Z","html_url":"https://github.com/typelevel/cats/pull/1169#discussion_r69285656","pull_request_url":"https://api.github.com/repos/typelevel/cats/pulls/1169","_links":{"self":{"href":"https://api.github.com/repos/typelevel/cats/pulls/comments/69285656"},"html":{"href":"https://github.com/typelevel/cats/pull/1169#discussion_r69285656"},"pull_request":{"href":"https://api.github.com/repos/typelevel/cats/pulls/1169"}}},"pull_request":{"url":"https://api.github.com/repos/typelevel/cats/pulls/1169","id":75702183,"html_url":"https://github.com/typelevel/cats/pull/1169","diff_url":"https://github.com/typelevel/cats/pull/1169.diff","patch_url":"https://github.com/typelevel/cats/pull/1169.patch","issue_url":"https://api.github.com/repos/typelevel/cats/issues/1169","number":1169,"state":"open","locked":false,"title":"Adding lift and inspect to StateT","user":{"login":"zainab-ali","id":12057118,"avatar_url":"https://avatars.githubusercontent.com/u/12057118?v=3","gravatar_id":"","url":"https://api.github.com/users/zainab-ali","html_url":"https://github.com/zainab-ali","followers_url":"https://api.github.com/users/zainab-ali/followers","following_url":"https://api.github.com/users/zainab-ali/following{/other_user}","gists_url":"https://api.github.com/users/zainab-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/zainab-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zainab-ali/subscriptions","organizations_url":"https://api.github.com/users/zainab-ali/orgs","repos_url":"https://api.github.com/users/zainab-ali/repos","events_url":"https://api.github.com/users/zainab-ali/events{/privacy}","received_events_url":"https://api.github.com/users/zainab-ali/received_events","type":"User","site_admin":false},"body":"Adding utility functions `lift` and `inspect` to the `StateT` object.","created_at":"2016-06-29T18:57:26Z","updated_at":"2016-07-01T11:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"423abf3308d839b319d088a6bd4f4407d4e0578c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/typelevel/cats/pulls/1169/commits","review_comments_url":"https://api.github.com/repos/typelevel/cats/pulls/1169/comments","review_comment_url":"https://api.github.com/repos/typelevel/cats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typelevel/cats/issues/1169/comments","statuses_url":"https://api.github.com/repos/typelevel/cats/statuses/d7c1bb5671611d79a2c247fa07816818bcd336d8","head":{"label":"zainab-ali:state","ref":"state","sha":"d7c1bb5671611d79a2c247fa07816818bcd336d8","user":{"login":"zainab-ali","id":12057118,"avatar_url":"https://avatars.githubusercontent.com/u/12057118?v=3","gravatar_id":"","url":"https://api.github.com/users/zainab-ali","html_url":"https://github.com/zainab-ali","followers_url":"https://api.github.com/users/zainab-ali/followers","following_url":"https://api.github.com/users/zainab-ali/following{/other_user}","gists_url":"https://api.github.com/users/zainab-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/zainab-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zainab-ali/subscriptions","organizations_url":"https://api.github.com/users/zainab-ali/orgs","repos_url":"https://api.github.com/users/zainab-ali/repos","events_url":"https://api.github.com/users/zainab-ali/events{/privacy}","received_events_url":"https://api.github.com/users/zainab-ali/received_events","type":"User","site_admin":false},"repo":{"id":59300437,"name":"cats","full_name":"zainab-ali/cats","owner":{"login":"zainab-ali","id":12057118,"avatar_url":"https://avatars.githubusercontent.com/u/12057118?v=3","gravatar_id":"","url":"https://api.github.com/users/zainab-ali","html_url":"https://github.com/zainab-ali","followers_url":"https://api.github.com/users/zainab-ali/followers","following_url":"https://api.github.com/users/zainab-ali/following{/other_user}","gists_url":"https://api.github.com/users/zainab-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/zainab-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zainab-ali/subscriptions","organizations_url":"https://api.github.com/users/zainab-ali/orgs","repos_url":"https://api.github.com/users/zainab-ali/repos","events_url":"https://api.github.com/users/zainab-ali/events{/privacy}","received_events_url":"https://api.github.com/users/zainab-ali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zainab-ali/cats","description":"Lightweight, modular, and extensible library for functional programming.","fork":true,"url":"https://api.github.com/repos/zainab-ali/cats","forks_url":"https://api.github.com/repos/zainab-ali/cats/forks","keys_url":"https://api.github.com/repos/zainab-ali/cats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zainab-ali/cats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zainab-ali/cats/teams","hooks_url":"https://api.github.com/repos/zainab-ali/cats/hooks","issue_events_url":"https://api.github.com/repos/zainab-ali/cats/issues/events{/number}","events_url":"https://api.github.com/repos/zainab-ali/cats/events","assignees_url":"https://api.github.com/repos/zainab-ali/cats/assignees{/user}","branches_url":"https://api.github.com/repos/zainab-ali/cats/branches{/branch}","tags_url":"https://api.github.com/repos/zainab-ali/cats/tags","blobs_url":"https://api.github.com/repos/zainab-ali/cats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zainab-ali/cats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zainab-ali/cats/git/refs{/sha}","trees_url":"https://api.github.com/repos/zainab-ali/cats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zainab-ali/cats/statuses/{sha}","languages_url":"https://api.github.com/repos/zainab-ali/cats/languages","stargazers_url":"https://api.github.com/repos/zainab-ali/cats/stargazers","contributors_url":"https://api.github.com/repos/zainab-ali/cats/contributors","subscribers_url":"https://api.github.com/repos/zainab-ali/cats/subscribers","subscription_url":"https://api.github.com/repos/zainab-ali/cats/subscription","commits_url":"https://api.github.com/repos/zainab-ali/cats/commits{/sha}","git_commits_url":"https://api.github.com/repos/zainab-ali/cats/git/commits{/sha}","comments_url":"https://api.github.com/repos/zainab-ali/cats/comments{/number}","issue_comment_url":"https://api.github.com/repos/zainab-ali/cats/issues/comments{/number}","contents_url":"https://api.github.com/repos/zainab-ali/cats/contents/{+path}","compare_url":"https://api.github.com/repos/zainab-ali/cats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zainab-ali/cats/merges","archive_url":"https://api.github.com/repos/zainab-ali/cats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zainab-ali/cats/downloads","issues_url":"https://api.github.com/repos/zainab-ali/cats/issues{/number}","pulls_url":"https://api.github.com/repos/zainab-ali/cats/pulls{/number}","milestones_url":"https://api.github.com/repos/zainab-ali/cats/milestones{/number}","notifications_url":"https://api.github.com/repos/zainab-ali/cats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zainab-ali/cats/labels{/name}","releases_url":"https://api.github.com/repos/zainab-ali/cats/releases{/id}","deployments_url":"https://api.github.com/repos/zainab-ali/cats/deployments","created_at":"2016-05-20T14:23:15Z","updated_at":"2016-05-20T14:23:17Z","pushed_at":"2016-06-29T20:45:33Z","git_url":"git://github.com/zainab-ali/cats.git","ssh_url":"git@github.com:zainab-ali/cats.git","clone_url":"https://github.com/zainab-ali/cats.git","svn_url":"https://github.com/zainab-ali/cats","homepage":"http://typelevel.org/cats/","size":10342,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"typelevel:master","ref":"master","sha":"a639f66408c1c1a4b6e9f0307a5a78a01692b73f","user":{"login":"typelevel","id":3731824,"avatar_url":"https://avatars.githubusercontent.com/u/3731824?v=3","gravatar_id":"","url":"https://api.github.com/users/typelevel","html_url":"https://github.com/typelevel","followers_url":"https://api.github.com/users/typelevel/followers","following_url":"https://api.github.com/users/typelevel/following{/other_user}","gists_url":"https://api.github.com/users/typelevel/gists{/gist_id}","starred_url":"https://api.github.com/users/typelevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typelevel/subscriptions","organizations_url":"https://api.github.com/users/typelevel/orgs","repos_url":"https://api.github.com/users/typelevel/repos","events_url":"https://api.github.com/users/typelevel/events{/privacy}","received_events_url":"https://api.github.com/users/typelevel/received_events","type":"Organization","site_admin":false},"repo":{"id":29986727,"name":"cats","full_name":"typelevel/cats","owner":{"login":"typelevel","id":3731824,"avatar_url":"https://avatars.githubusercontent.com/u/3731824?v=3","gravatar_id":"","url":"https://api.github.com/users/typelevel","html_url":"https://github.com/typelevel","followers_url":"https://api.github.com/users/typelevel/followers","following_url":"https://api.github.com/users/typelevel/following{/other_user}","gists_url":"https://api.github.com/users/typelevel/gists{/gist_id}","starred_url":"https://api.github.com/users/typelevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typelevel/subscriptions","organizations_url":"https://api.github.com/users/typelevel/orgs","repos_url":"https://api.github.com/users/typelevel/repos","events_url":"https://api.github.com/users/typelevel/events{/privacy}","received_events_url":"https://api.github.com/users/typelevel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typelevel/cats","description":"Lightweight, modular, and extensible library for functional programming.","fork":false,"url":"https://api.github.com/repos/typelevel/cats","forks_url":"https://api.github.com/repos/typelevel/cats/forks","keys_url":"https://api.github.com/repos/typelevel/cats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typelevel/cats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typelevel/cats/teams","hooks_url":"https://api.github.com/repos/typelevel/cats/hooks","issue_events_url":"https://api.github.com/repos/typelevel/cats/issues/events{/number}","events_url":"https://api.github.com/repos/typelevel/cats/events","assignees_url":"https://api.github.com/repos/typelevel/cats/assignees{/user}","branches_url":"https://api.github.com/repos/typelevel/cats/branches{/branch}","tags_url":"https://api.github.com/repos/typelevel/cats/tags","blobs_url":"https://api.github.com/repos/typelevel/cats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typelevel/cats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typelevel/cats/git/refs{/sha}","trees_url":"https://api.github.com/repos/typelevel/cats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typelevel/cats/statuses/{sha}","languages_url":"https://api.github.com/repos/typelevel/cats/languages","stargazers_url":"https://api.github.com/repos/typelevel/cats/stargazers","contributors_url":"https://api.github.com/repos/typelevel/cats/contributors","subscribers_url":"https://api.github.com/repos/typelevel/cats/subscribers","subscription_url":"https://api.github.com/repos/typelevel/cats/subscription","commits_url":"https://api.github.com/repos/typelevel/cats/commits{/sha}","git_commits_url":"https://api.github.com/repos/typelevel/cats/git/commits{/sha}","comments_url":"https://api.github.com/repos/typelevel/cats/comments{/number}","issue_comment_url":"https://api.github.com/repos/typelevel/cats/issues/comments{/number}","contents_url":"https://api.github.com/repos/typelevel/cats/contents/{+path}","compare_url":"https://api.github.com/repos/typelevel/cats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typelevel/cats/merges","archive_url":"https://api.github.com/repos/typelevel/cats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typelevel/cats/downloads","issues_url":"https://api.github.com/repos/typelevel/cats/issues{/number}","pulls_url":"https://api.github.com/repos/typelevel/cats/pulls{/number}","milestones_url":"https://api.github.com/repos/typelevel/cats/milestones{/number}","notifications_url":"https://api.github.com/repos/typelevel/cats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typelevel/cats/labels{/name}","releases_url":"https://api.github.com/repos/typelevel/cats/releases{/id}","deployments_url":"https://api.github.com/repos/typelevel/cats/deployments","created_at":"2015-01-28T20:26:48Z","updated_at":"2016-06-30T16:50:30Z","pushed_at":"2016-07-01T10:33:31Z","git_url":"git://github.com/typelevel/cats.git","ssh_url":"git@github.com:typelevel/cats.git","clone_url":"https://github.com/typelevel/cats.git","svn_url":"https://github.com/typelevel/cats","homepage":"http://typelevel.org/cats/","size":11990,"stargazers_count":1119,"watchers_count":1119,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":256,"mirror_url":null,"open_issues_count":150,"forks":256,"open_issues":150,"watchers":1119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typelevel/cats/pulls/1169"},"html":{"href":"https://github.com/typelevel/cats/pull/1169"},"issue":{"href":"https://api.github.com/repos/typelevel/cats/issues/1169"},"comments":{"href":"https://api.github.com/repos/typelevel/cats/issues/1169/comments"},"review_comments":{"href":"https://api.github.com/repos/typelevel/cats/pulls/1169/comments"},"review_comment":{"href":"https://api.github.com/repos/typelevel/cats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typelevel/cats/pulls/1169/commits"},"statuses":{"href":"https://api.github.com/repos/typelevel/cats/statuses/d7c1bb5671611d79a2c247fa07816818bcd336d8"}}}}
{"actor":{"display_login":"ceedubs"}}