{"action":"created","issue":{"url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/11","repository_url":"https://api.github.com/repos/eskimor/purescript-bridge","labels_url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/11/comments","events_url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/11/events","html_url":"https://github.com/eskimor/purescript-bridge/issues/11","id":175091156,"number":11,"title":"Generic instances for type constructors wrong?","user":{"login":"eskimor","id":1527017,"avatar_url":"https://avatars.githubusercontent.com/u/1527017?v=3","gravatar_id":"","url":"https://api.github.com/users/eskimor","html_url":"https://github.com/eskimor","followers_url":"https://api.github.com/users/eskimor/followers","following_url":"https://api.github.com/users/eskimor/following{/other_user}","gists_url":"https://api.github.com/users/eskimor/gists{/gist_id}","starred_url":"https://api.github.com/users/eskimor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eskimor/subscriptions","organizations_url":"https://api.github.com/users/eskimor/orgs","repos_url":"https://api.github.com/users/eskimor/repos","events_url":"https://api.github.com/users/eskimor/events{/privacy}","received_events_url":"https://api.github.com/users/eskimor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eskimor/purescript-bridge/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-05T15:15:09Z","updated_at":"2016-09-06T07:53:15Z","closed_at":null,"body":"As @akegalj pointed out:\r\n\r\nhttps://github.com/eskimor/purescript-bridge/blob/master/src/Language/PureScript/Bridge/Printer.hs#L77\r\n\r\nThe derive Generic instance only covers the typename, but it should also include type parameters:\r\n\r\n```purescript\r\ndata Foo a = Foo Int\r\n\r\nderive instance genericFoo :: Generic (Foo a) \r\n```\r\n\r\ninstead of just\r\n\r\n```purescript\r\nderive instance genericFoo :: Generic Foo\r\n```"},"comment":{"url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/comments/244876099","html_url":"https://github.com/eskimor/purescript-bridge/issues/11#issuecomment-244876099","issue_url":"https://api.github.com/repos/eskimor/purescript-bridge/issues/11","id":244876099,"user":{"login":"akegalj","id":2461951,"avatar_url":"https://avatars.githubusercontent.com/u/2461951?v=3","gravatar_id":"","url":"https://api.github.com/users/akegalj","html_url":"https://github.com/akegalj","followers_url":"https://api.github.com/users/akegalj/followers","following_url":"https://api.github.com/users/akegalj/following{/other_user}","gists_url":"https://api.github.com/users/akegalj/gists{/gist_id}","starred_url":"https://api.github.com/users/akegalj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akegalj/subscriptions","organizations_url":"https://api.github.com/users/akegalj/orgs","repos_url":"https://api.github.com/users/akegalj/repos","events_url":"https://api.github.com/users/akegalj/events{/privacy}","received_events_url":"https://api.github.com/users/akegalj/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T07:53:15Z","updated_at":"2016-09-06T07:53:15Z","body":"> I should use the Preview functionality before sending - I guess you just got an awful huge amount of notifications. Sorry about that!\r\n\r\nnp :)\r\n\r\n> They are not needed for Phantom types\r\n\r\nI didn't think about this use case until I read this comment. It is implemented in this PR and it should work (at least for some simple cases that I have tried). "}}
{"actor":{"display_login":"akegalj"}}