{"action":"created","issue":{"url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/1","repository_url":"https://api.github.com/repos/fantasyland/fantasy-monoids","labels_url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/1/comments","events_url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/1/events","html_url":"https://github.com/fantasyland/fantasy-monoids/issues/1","id":131683132,"number":1,"title":"uniform getter","user":{"login":"DrBoolean","id":28562,"avatar_url":"https://avatars.githubusercontent.com/u/28562?v=3","gravatar_id":"","url":"https://api.github.com/users/DrBoolean","html_url":"https://github.com/DrBoolean","followers_url":"https://api.github.com/users/DrBoolean/followers","following_url":"https://api.github.com/users/DrBoolean/following{/other_user}","gists_url":"https://api.github.com/users/DrBoolean/gists{/gist_id}","starred_url":"https://api.github.com/users/DrBoolean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrBoolean/subscriptions","organizations_url":"https://api.github.com/users/DrBoolean/orgs","repos_url":"https://api.github.com/users/DrBoolean/repos","events_url":"https://api.github.com/users/DrBoolean/events{/privacy}","received_events_url":"https://api.github.com/users/DrBoolean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T16:10:44Z","updated_at":"2016-02-05T16:27:02Z","closed_at":null,"body":"Something that always irked me about haskell is the `getSum`/`getProduct` etc functions. It makes writing functions less generic than just passing in the favored monoid.\r\n\r\n```js\r\nconst any = xs => xs.foldMap(Any).getAny\r\nconst all = xs => xs.foldMap(All).getAll\r\n```\r\n\r\nI had luck with working with a common getter like `getVal` Thoughts?"},"comment":{"url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/comments/180428883","html_url":"https://github.com/fantasyland/fantasy-monoids/issues/1#issuecomment-180428883","issue_url":"https://api.github.com/repos/fantasyland/fantasy-monoids/issues/1","id":180428883,"user":{"login":"SimonRichardson","id":2562584,"avatar_url":"https://avatars.githubusercontent.com/u/2562584?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonRichardson","html_url":"https://github.com/SimonRichardson","followers_url":"https://api.github.com/users/SimonRichardson/followers","following_url":"https://api.github.com/users/SimonRichardson/following{/other_user}","gists_url":"https://api.github.com/users/SimonRichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonRichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonRichardson/subscriptions","organizations_url":"https://api.github.com/users/SimonRichardson/orgs","repos_url":"https://api.github.com/users/SimonRichardson/repos","events_url":"https://api.github.com/users/SimonRichardson/events{/privacy}","received_events_url":"https://api.github.com/users/SimonRichardson/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T16:27:02Z","updated_at":"2016-02-05T16:27:02Z","body":"I don't mind `get`, but `getVal` works!"}}