{"action":"created","issue":{"url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/3","labels_url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/3/comments","events_url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/3/events","html_url":"https://github.com/yamadapc/haskell-ascii-progress/issues/3","id":66144544,"number":3,"title":"Custom rendering","user":{"login":"joeyh","id":16392,"avatar_url":"https://avatars.githubusercontent.com/u/16392?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyh","html_url":"https://github.com/joeyh","followers_url":"https://api.github.com/users/joeyh/followers","following_url":"https://api.github.com/users/joeyh/following{/other_user}","gists_url":"https://api.github.com/users/joeyh/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyh/subscriptions","organizations_url":"https://api.github.com/users/joeyh/orgs","repos_url":"https://api.github.com/users/joeyh/repos","events_url":"https://api.github.com/users/joeyh/events{/privacy}","received_events_url":"https://api.github.com/users/joeyh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-03T13:13:43Z","updated_at":"2015-04-03T19:45:36Z","closed_at":null,"body":"If I'm downloading a file, I don't want to display 322112/2929933 to the user but more something like \"32MB\".\r\n\r\nI don't know how to fit Stats -> String into the pgFormat interface, but my wish is a way to do that. (IIRC there were some ideas for a better format interface on the reddit thread.)\r\n\r\nAlternatively, it could contain a SI data units format string. I have a nice little library in git-annex that can format them, that could be broken out to hackage. \r\n\r\nBut, I feel embedding a particular data units display in the progress bar library is the wrong choice. For example, in the case of git-annex I want it to consistently use the same style for displaying data sizes throughout the program, including in progress bars. If the progress bar library does its own formatting of them, I don't really have the control I want."},"comment":{"url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/comments/89404982","html_url":"https://github.com/yamadapc/haskell-ascii-progress/issues/3#issuecomment-89404982","issue_url":"https://api.github.com/repos/yamadapc/haskell-ascii-progress/issues/3","id":89404982,"user":{"login":"yamadapc","id":3923654,"avatar_url":"https://avatars.githubusercontent.com/u/3923654?v=3","gravatar_id":"","url":"https://api.github.com/users/yamadapc","html_url":"https://github.com/yamadapc","followers_url":"https://api.github.com/users/yamadapc/followers","following_url":"https://api.github.com/users/yamadapc/following{/other_user}","gists_url":"https://api.github.com/users/yamadapc/gists{/gist_id}","starred_url":"https://api.github.com/users/yamadapc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamadapc/subscriptions","organizations_url":"https://api.github.com/users/yamadapc/orgs","repos_url":"https://api.github.com/users/yamadapc/repos","events_url":"https://api.github.com/users/yamadapc/events{/privacy}","received_events_url":"https://api.github.com/users/yamadapc/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T19:45:36Z","updated_at":"2015-04-03T19:45:36Z","body":"This is an interesting issue. I wonder if it'd be possible to use the type system (after changing the format string to be more Haskell-like, as proposed in the Reddit thread) to solve it."}}