{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/970","labels_url":"https://api.github.com/repos/purescript/purescript/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/970/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/970/events","html_url":"https://github.com/purescript/purescript/issues/970","id":62290559,"number":970,"title":"Automatic Show and Eq instances for records","user":{"login":"dvdsgl","id":108197,"avatar_url":"https://avatars.githubusercontent.com/u/108197?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdsgl","html_url":"https://github.com/dvdsgl","followers_url":"https://api.github.com/users/dvdsgl/followers","following_url":"https://api.github.com/users/dvdsgl/following{/other_user}","gists_url":"https://api.github.com/users/dvdsgl/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdsgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdsgl/subscriptions","organizations_url":"https://api.github.com/users/dvdsgl/orgs","repos_url":"https://api.github.com/users/dvdsgl/repos","events_url":"https://api.github.com/users/dvdsgl/events{/privacy}","received_events_url":"https://api.github.com/users/dvdsgl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T05:23:16Z","updated_at":"2015-03-17T05:31:32Z","closed_at":null,"body":"I'd be able to simplify my codebase significantly by using type aliases and records rather than creating new types, but I'm prevented from doing this because I want to use `show` and `==` on my values, and I don't see how I can add records to `Show` or `Eq`.\r\n\r\nI'd love it if closed record types were given automatic `Show` or `Eq` instances if all of their fields were already in `Show` or `Eq`."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/82117532","html_url":"https://github.com/purescript/purescript/issues/970#issuecomment-82117532","issue_url":"https://api.github.com/repos/purescript/purescript/issues/970","id":82117532,"user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T05:31:32Z","updated_at":"2015-03-17T05:31:32Z","body":"You can probably do this with `purescript-reflection`. Not the automatic part, just defining the instances."}}