{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell-servant/servant/issues/187","labels_url":"https://api.github.com/repos/haskell-servant/servant/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/haskell-servant/servant/issues/187/comments","events_url":"https://api.github.com/repos/haskell-servant/servant/issues/187/events","html_url":"https://github.com/haskell-servant/servant/issues/187","id":99939726,"number":187,"title":"Discover (sub) APIs and the corresponding handlers under a directory (TH?)","user":{"login":"alpmestan","id":119323,"avatar_url":"https://avatars.githubusercontent.com/u/119323?v=3","gravatar_id":"","url":"https://api.github.com/users/alpmestan","html_url":"https://github.com/alpmestan","followers_url":"https://api.github.com/users/alpmestan/followers","following_url":"https://api.github.com/users/alpmestan/following{/other_user}","gists_url":"https://api.github.com/users/alpmestan/gists{/gist_id}","starred_url":"https://api.github.com/users/alpmestan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpmestan/subscriptions","organizations_url":"https://api.github.com/users/alpmestan/orgs","repos_url":"https://api.github.com/users/alpmestan/repos","events_url":"https://api.github.com/users/alpmestan/events{/privacy}","received_events_url":"https://api.github.com/users/alpmestan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-09T23:23:43Z","updated_at":"2015-12-10T17:35:49Z","closed_at":"2015-12-10T17:35:49Z","body":"While talking with *jsidfofo* on IRC, who would like to write handlers and the corresponding routes \"at the same time\", i.e have them visually close to one anoher, we had the idea of a (probably TH-powered) thing that could scan some directory for API types and the corresponding request handlers, and automatically write the \"big API type\" that `:<|>`'s together all the ones it would have discovered, doing the same with the request handlers.\r\n\r\nI know close to nothing about TH but maybe it could be of help here? An alternative approach could be to write something akin to Simon's *hspec-discover*."}}