{"action":"created","issue":{"url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/7","repository_url":"https://api.github.com/repos/soenkehahn/string-conversions","labels_url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/7/comments","events_url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/7/events","html_url":"https://github.com/soenkehahn/string-conversions/issues/7","id":150237126,"number":7,"title":"Provide strict conversion from ByteString to Text","user":{"login":"mitchellwrosen","id":1074598,"avatar_url":"https://avatars.githubusercontent.com/u/1074598?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellwrosen","html_url":"https://github.com/mitchellwrosen","followers_url":"https://api.github.com/users/mitchellwrosen/followers","following_url":"https://api.github.com/users/mitchellwrosen/following{/other_user}","gists_url":"https://api.github.com/users/mitchellwrosen/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellwrosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellwrosen/subscriptions","organizations_url":"https://api.github.com/users/mitchellwrosen/orgs","repos_url":"https://api.github.com/users/mitchellwrosen/repos","events_url":"https://api.github.com/users/mitchellwrosen/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellwrosen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-22T01:20:48Z","updated_at":"2016-05-04T04:21:01Z","closed_at":null,"body":"Currently all ByteString -> Text conversions use `Data.Text.Encoding.Error.lenientDecode`. However, some users might prefer the `UnicodeException` be thrown instead.\r\n\r\nSo, I propose an alternative module `Data.Conversions.String.Strict`, which is a drop-in replacement for `Data.Conversions.String`, but uses `Data.Text.Encoding.Error.strictDecode` in the ByteString -> Text instances."},"comment":{"url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/comments/216737766","html_url":"https://github.com/soenkehahn/string-conversions/issues/7#issuecomment-216737766","issue_url":"https://api.github.com/repos/soenkehahn/string-conversions/issues/7","id":216737766,"user":{"login":"soenkehahn","id":402539,"avatar_url":"https://avatars.githubusercontent.com/u/402539?v=3","gravatar_id":"","url":"https://api.github.com/users/soenkehahn","html_url":"https://github.com/soenkehahn","followers_url":"https://api.github.com/users/soenkehahn/followers","following_url":"https://api.github.com/users/soenkehahn/following{/other_user}","gists_url":"https://api.github.com/users/soenkehahn/gists{/gist_id}","starred_url":"https://api.github.com/users/soenkehahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soenkehahn/subscriptions","organizations_url":"https://api.github.com/users/soenkehahn/orgs","repos_url":"https://api.github.com/users/soenkehahn/repos","events_url":"https://api.github.com/users/soenkehahn/events{/privacy}","received_events_url":"https://api.github.com/users/soenkehahn/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T04:21:01Z","updated_at":"2016-05-04T04:21:01Z","body":"Hmm, ideally `ByteString -> String` would behave similarly to `ByteString -> Text` when it comes to decoding failures. Thanks for the pointer.\r\n\r\nI take it that you're not interested in having this feature anymore, so I'll close. Feel free to reopen, if you want this."}}