{"action":"created","issue":{"url":"https://api.github.com/repos/ekmett/linear/issues/109","repository_url":"https://api.github.com/repos/ekmett/linear","labels_url":"https://api.github.com/repos/ekmett/linear/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/ekmett/linear/issues/109/comments","events_url":"https://api.github.com/repos/ekmett/linear/issues/109/events","html_url":"https://github.com/ekmett/linear/issues/109","id":159825421,"number":109,"title":"A way to read [a] to t a","user":{"login":"abbradar","id":1174810,"avatar_url":"https://avatars.githubusercontent.com/u/1174810?v=3","gravatar_id":"","url":"https://api.github.com/users/abbradar","html_url":"https://github.com/abbradar","followers_url":"https://api.github.com/users/abbradar/followers","following_url":"https://api.github.com/users/abbradar/following{/other_user}","gists_url":"https://api.github.com/users/abbradar/gists{/gist_id}","starred_url":"https://api.github.com/users/abbradar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbradar/subscriptions","organizations_url":"https://api.github.com/users/abbradar/orgs","repos_url":"https://api.github.com/users/abbradar/repos","events_url":"https://api.github.com/users/abbradar/events{/privacy}","received_events_url":"https://api.github.com/users/abbradar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-12T12:44:31Z","updated_at":"2016-06-12T16:05:05Z","closed_at":null,"body":"Hi,\r\n\r\nIt would be nice to have functions for converting lists to matrices and vectors. I imagine something like this:\r\n\r\n```\r\nclass FromList t where\r\n  fromList :: [a] -> Maybe (t a)\r\n\r\ninstance FromList V4 where\r\n  ...\r\n```\r\n\r\n, sans class and function names. Writing those functions by hand (with pattern-matching) is long and error-prone -- better have them in one place. For example, this is useful when I parse data from a file. I'm willing to provide a patch if we agree on an interface.\r\n\r\nFinally, it's very possible there is already something to do this and I've simply overlooked it. If so, sorry for this!"},"comment":{"url":"https://api.github.com/repos/ekmett/linear/issues/comments/225445377","html_url":"https://github.com/ekmett/linear/issues/109#issuecomment-225445377","issue_url":"https://api.github.com/repos/ekmett/linear/issues/109","id":225445377,"user":{"login":"bgamari","id":1010174,"avatar_url":"https://avatars.githubusercontent.com/u/1010174?v=3","gravatar_id":"","url":"https://api.github.com/users/bgamari","html_url":"https://github.com/bgamari","followers_url":"https://api.github.com/users/bgamari/followers","following_url":"https://api.github.com/users/bgamari/following{/other_user}","gists_url":"https://api.github.com/users/bgamari/gists{/gist_id}","starred_url":"https://api.github.com/users/bgamari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgamari/subscriptions","organizations_url":"https://api.github.com/users/bgamari/orgs","repos_url":"https://api.github.com/users/bgamari/repos","events_url":"https://api.github.com/users/bgamari/events{/privacy}","received_events_url":"https://api.github.com/users/bgamari/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T16:05:05Z","updated_at":"2016-06-12T16:05:05Z","body":"You likely want to look at the [`OverloadedLists`](https://github.com/ekmett/linear/issues/109#issuecomment-225436800) language extension, which allows list syntax to be overloaded by way of the `GHC.Exts.IsList` class."}}
{"actor":{"display_login":"bgamari"}}