{"action":"created","issue":{"url":"https://api.github.com/repos/pikajude/th-printf/issues/9","repository_url":"https://api.github.com/repos/pikajude/th-printf","labels_url":"https://api.github.com/repos/pikajude/th-printf/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/pikajude/th-printf/issues/9/comments","events_url":"https://api.github.com/repos/pikajude/th-printf/issues/9/events","html_url":"https://github.com/pikajude/th-printf/issues/9","id":314100305,"node_id":"MDU6SXNzdWUzMTQxMDAzMDU=","number":9,"title":"Interpolating Text","user":{"login":"jchia","id":446676,"node_id":"MDQ6VXNlcjQ0NjY3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/446676?v=4","gravatar_id":"","url":"https://api.github.com/users/jchia","html_url":"https://github.com/jchia","followers_url":"https://api.github.com/users/jchia/followers","following_url":"https://api.github.com/users/jchia/following{/other_user}","gists_url":"https://api.github.com/users/jchia/gists{/gist_id}","starred_url":"https://api.github.com/users/jchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchia/subscriptions","organizations_url":"https://api.github.com/users/jchia/orgs","repos_url":"https://api.github.com/users/jchia/repos","events_url":"https://api.github.com/users/jchia/events{/privacy}","received_events_url":"https://api.github.com/users/jchia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-13T13:07:30Z","updated_at":"2019-09-16T13:16:00Z","closed_at":null,"author_association":"NONE","body":"It appears that `%s` is for interpolating `String` and I haven't figured out how to interpolate `Text`. Is there a more convenient way besides using `unpack :: Text -> String`? If not, what about changing `st` so that it expects `Text` instead of `String` when `%s` is used? Using `unpack` to convert a `Text` to a `String` just to use with `th-printf` seems inefficient.\r\n\r\nMaybe another way is to make an internal typeclass inhabited by both `String` and `Text` so that `%s` interpolates a value of that typeclass, but that may sometimes require explicit type annotations when used with `OverloadedStrings`."},"comment":{"url":"https://api.github.com/repos/pikajude/th-printf/issues/comments/531771666","html_url":"https://github.com/pikajude/th-printf/issues/9#issuecomment-531771666","issue_url":"https://api.github.com/repos/pikajude/th-printf/issues/9","id":531771666,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTc3MTY2Ng==","user":{"login":"peti","id":28323,"node_id":"MDQ6VXNlcjI4MzIz","avatar_url":"https://avatars3.githubusercontent.com/u/28323?v=4","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"created_at":"2019-09-16T13:16:00Z","updated_at":"2019-09-16T13:16:00Z","author_association":"NONE","body":"Those new features are not in a released version of the library yet?"}}
{"actor":{"display_login":"peti"}}