{"action":"created","issue":{"url":"https://api.github.com/repos/silkapp/rest/issues/117","labels_url":"https://api.github.com/repos/silkapp/rest/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/silkapp/rest/issues/117/comments","events_url":"https://api.github.com/repos/silkapp/rest/issues/117/events","html_url":"https://github.com/silkapp/rest/issues/117","id":72455229,"number":117,"title":"Add endpoint factories for custom parsers","user":{"login":"L8D","id":2355315,"avatar_url":"https://avatars.githubusercontent.com/u/2355315?v=3","gravatar_id":"","url":"https://api.github.com/users/L8D","html_url":"https://github.com/L8D","followers_url":"https://api.github.com/users/L8D/followers","following_url":"https://api.github.com/users/L8D/following{/other_user}","gists_url":"https://api.github.com/users/L8D/gists{/gist_id}","starred_url":"https://api.github.com/users/L8D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L8D/subscriptions","organizations_url":"https://api.github.com/users/L8D/orgs","repos_url":"https://api.github.com/users/L8D/repos","events_url":"https://api.github.com/users/L8D/events{/privacy}","received_events_url":"https://api.github.com/users/L8D/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T15:26:20Z","updated_at":"2015-05-01T15:28:33Z","closed_at":null,"body":"Currently we have endpoint creators like `single`, `singleBy` and `singleRead`. The only way to write a custom parser is through `singleRead` and many libraries assume `Read` and `Show` instances are meant for developer-readable representations (exa. Data.UUID, ByteString, UTCTime) as well as using `Read` is just plain annoying.\r\n\r\nCan we add an additional endpoint creator category like `(String -> Maybe sid) -> Endpoint sid mid aid` or `Parser sid -> Endpoint sid mid aid` for some assumed parser library (exa. attoparsec)?"},"comment":{"url":"https://api.github.com/repos/silkapp/rest/issues/comments/98156955","html_url":"https://github.com/silkapp/rest/issues/117#issuecomment-98156955","issue_url":"https://api.github.com/repos/silkapp/rest/issues/117","id":98156955,"user":{"login":"L8D","id":2355315,"avatar_url":"https://avatars.githubusercontent.com/u/2355315?v=3","gravatar_id":"","url":"https://api.github.com/users/L8D","html_url":"https://github.com/L8D","followers_url":"https://api.github.com/users/L8D/followers","following_url":"https://api.github.com/users/L8D/following{/other_user}","gists_url":"https://api.github.com/users/L8D/gists{/gist_id}","starred_url":"https://api.github.com/users/L8D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L8D/subscriptions","organizations_url":"https://api.github.com/users/L8D/orgs","repos_url":"https://api.github.com/users/L8D/repos","events_url":"https://api.github.com/users/L8D/events{/privacy}","received_events_url":"https://api.github.com/users/L8D/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T15:28:33Z","updated_at":"2015-05-01T15:28:33Z","body":"My current need is because I'm using UUIDs as resource identifiers and the current `Data.UUID` library only reads stringified UUIDs since it assumes `Show` and `Read` should serialize and parse valid Haskell expressions. So I need to write a custom `Read` instance for my newtypes."}}