{"action":"opened","issue":{"url":"https://api.github.com/repos/calvinlfer/account-experiment/issues/1","repository_url":"https://api.github.com/repos/calvinlfer/account-experiment","labels_url":"https://api.github.com/repos/calvinlfer/account-experiment/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/calvinlfer/account-experiment/issues/1/comments","events_url":"https://api.github.com/repos/calvinlfer/account-experiment/issues/1/events","html_url":"https://github.com/calvinlfer/account-experiment/issues/1","id":334602369,"node_id":"MDU6SXNzdWUzMzQ2MDIzNjk=","number":1,"title":"Tagless Final","user":{"login":"calvinlfer","id":14280155,"node_id":"MDQ6VXNlcjE0MjgwMTU1","avatar_url":"https://avatars3.githubusercontent.com/u/14280155?v=4","gravatar_id":"","url":"https://api.github.com/users/calvinlfer","html_url":"https://github.com/calvinlfer","followers_url":"https://api.github.com/users/calvinlfer/followers","following_url":"https://api.github.com/users/calvinlfer/following{/other_user}","gists_url":"https://api.github.com/users/calvinlfer/gists{/gist_id}","starred_url":"https://api.github.com/users/calvinlfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calvinlfer/subscriptions","organizations_url":"https://api.github.com/users/calvinlfer/orgs","repos_url":"https://api.github.com/users/calvinlfer/repos","events_url":"https://api.github.com/users/calvinlfer/events{/privacy}","received_events_url":"https://api.github.com/users/calvinlfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T18:13:38Z","updated_at":"2018-06-21T18:13:38Z","closed_at":null,"author_association":"OWNER","body":"Mention that instead of imposing a Monad implementation at the trait/class level, you can actually do it at the function level. So \r\n```\r\n  // import flatMap/Monad syntax \r\n  def capture(amount: Money)(implicit m: Monad[Effect]): Account => Effect[Account] = account =>\r\n    for {\r\n      accWithMoney <- cancel(amount)(account)       // remove the hold\r\n      accResult    <- debit(amount)(accWithMoney)   // debit the account\r\n    } yield accResult\r\n```\r\n"}}
{"actor":{"display_login":"calvinlfer"}}