{"action":"opened","issue":{"url":"https://api.github.com/repos/barrucadu/NYHC/issues/7","labels_url":"https://api.github.com/repos/barrucadu/NYHC/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/barrucadu/NYHC/issues/7/comments","events_url":"https://api.github.com/repos/barrucadu/NYHC/issues/7/events","html_url":"https://github.com/barrucadu/NYHC/issues/7","id":64973066,"number":7,"title":"Typeclasses","user":{"login":"barrucadu","id":75235,"avatar_url":"https://avatars.githubusercontent.com/u/75235?v=3","gravatar_id":"","url":"https://api.github.com/users/barrucadu","html_url":"https://github.com/barrucadu","followers_url":"https://api.github.com/users/barrucadu/followers","following_url":"https://api.github.com/users/barrucadu/following{/other_user}","gists_url":"https://api.github.com/users/barrucadu/gists{/gist_id}","starred_url":"https://api.github.com/users/barrucadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrucadu/subscriptions","organizations_url":"https://api.github.com/users/barrucadu/orgs","repos_url":"https://api.github.com/users/barrucadu/repos","events_url":"https://api.github.com/users/barrucadu/events{/privacy}","received_events_url":"https://api.github.com/users/barrucadu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/barrucadu/NYHC/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/barrucadu/NYHC/labels/syntactic-sugar","name":"syntactic-sugar","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-28T18:27:57Z","updated_at":"2015-03-28T18:27:57Z","closed_at":null,"body":"With whole-program compilation (#1), records (#5), and types (#6), typeclasses are just syntactic sugar!\r\n\r\n## Tasks:\r\n\r\n * Extend parser to accept `class` and `instance` blocks..\r\n * Desugar `class` declarations to defining a new record type.\r\n * Desugar `instance` declarations to defining a new value of this type.\r\n * Convert class constraints in types to explicit dictionary passing.\r\n\r\n## Issues:\r\n\r\n * Be careful to avoid name conflicts when desugaring."}}