{"action":"created","issue":{"url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/30","labels_url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/30/comments","events_url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/30/events","html_url":"https://github.com/whitequark/ppx_deriving/issues/30","id":66716957,"number":30,"title":"Improve locations for external functions","user":{"login":"Drup","id":801124,"avatar_url":"https://avatars.githubusercontent.com/u/801124?v=3","gravatar_id":"","url":"https://api.github.com/users/Drup","html_url":"https://github.com/Drup","followers_url":"https://api.github.com/users/Drup/followers","following_url":"https://api.github.com/users/Drup/following{/other_user}","gists_url":"https://api.github.com/users/Drup/gists{/gist_id}","starred_url":"https://api.github.com/users/Drup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drup/subscriptions","organizations_url":"https://api.github.com/users/Drup/orgs","repos_url":"https://api.github.com/users/Drup/repos","events_url":"https://api.github.com/users/Drup/events{/privacy}","received_events_url":"https://api.github.com/users/Drup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T22:08:50Z","updated_at":"2015-04-06T22:12:12Z","closed_at":null,"body":"For example:\r\n```ocaml\r\ntype t = { \r\n  foo : Foo.t option\r\n} [@@deriving show]\r\n```\r\nThe generated identifier `Foo.to_string` could be located either to the `foo` field or to the `Foo.t` type. \r\nIt would help with [big records](https://github.com/ocsigen/ocsigenserver/blob/cohttp_rebased/src/server/ocsigen_request_info.ml#L15-L83) (No, I didn't wrote this monstrosity)."},"comment":{"url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/comments/90261012","html_url":"https://github.com/whitequark/ppx_deriving/issues/30#issuecomment-90261012","issue_url":"https://api.github.com/repos/whitequark/ppx_deriving/issues/30","id":90261012,"user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T22:12:12Z","updated_at":"2015-04-06T22:12:12Z","body":"Good idea. This would be easy to fix using `[@metaloc]`, I think."}}