{"action":"created","issue":{"url":"https://api.github.com/repos/haskell-servant/servant/issues/38","labels_url":"https://api.github.com/repos/haskell-servant/servant/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/haskell-servant/servant/issues/38/comments","events_url":"https://api.github.com/repos/haskell-servant/servant/issues/38/events","html_url":"https://github.com/haskell-servant/servant/issues/38","id":69576971,"number":38,"title":"Overlapping names","user":{"login":"jkarni","id":1657498,"avatar_url":"https://avatars.githubusercontent.com/u/1657498?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarni","html_url":"https://github.com/jkarni","followers_url":"https://api.github.com/users/jkarni/followers","following_url":"https://api.github.com/users/jkarni/following{/other_user}","gists_url":"https://api.github.com/users/jkarni/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarni/subscriptions","organizations_url":"https://api.github.com/users/jkarni/orgs","repos_url":"https://api.github.com/users/jkarni/repos","events_url":"https://api.github.com/users/jkarni/events{/privacy}","received_events_url":"https://api.github.com/users/jkarni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T12:33:09Z","updated_at":"2015-04-20T12:33:10Z","closed_at":null,"body":"_From @seanhess on April 16, 2015 17:44_\n\nServant is using the same name `getsources` for both `GET /sources` and `GET /sources/:id`. Is there some way it could figure out to call the second one `getsource`?\r\n\r\n```\r\ntype Api = \"sources\" :> Get [Source] :<|> \"sources\" :> Capture \"id\" Text :> Get (Source)\r\n```\n\n_Copied from original issue: haskell-servant/servant-jquery#13_"},"comment":{"url":"https://api.github.com/repos/haskell-servant/servant/issues/comments/94440680","html_url":"https://github.com/haskell-servant/servant/issues/38#issuecomment-94440680","issue_url":"https://api.github.com/repos/haskell-servant/servant/issues/38","id":94440680,"user":{"login":"jkarni","id":1657498,"avatar_url":"https://avatars.githubusercontent.com/u/1657498?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarni","html_url":"https://github.com/jkarni","followers_url":"https://api.github.com/users/jkarni/followers","following_url":"https://api.github.com/users/jkarni/following{/other_user}","gists_url":"https://api.github.com/users/jkarni/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarni/subscriptions","organizations_url":"https://api.github.com/users/jkarni/orgs","repos_url":"https://api.github.com/users/jkarni/repos","events_url":"https://api.github.com/users/jkarni/events{/privacy}","received_events_url":"https://api.github.com/users/jkarni/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T12:33:10Z","updated_at":"2015-04-20T12:33:10Z","body":"Great question. I'd suggest manually or automatically [0] changing the produced source code for now, but we'll keep this issue open and try to figure out a general way of preventing/resolving conflicting names.\r\n\r\n[0] Something as simple as `sed  '0,/getsources(/! s/getsources(/getsourcesCapture(/' <file>` might work, even though it's pretty brittle."}}