{"action":"opened","issue":{"url":"https://api.github.com/repos/PaulJohnson/Haskell-Decimal/issues/20","repository_url":"https://api.github.com/repos/PaulJohnson/Haskell-Decimal","labels_url":"https://api.github.com/repos/PaulJohnson/Haskell-Decimal/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PaulJohnson/Haskell-Decimal/issues/20/comments","events_url":"https://api.github.com/repos/PaulJohnson/Haskell-Decimal/issues/20/events","html_url":"https://github.com/PaulJohnson/Haskell-Decimal/issues/20","id":510844064,"node_id":"MDU6SXNzdWU1MTA4NDQwNjQ=","number":20,"title":"Show instances are surprising","user":{"login":"emilypi","id":10459342,"node_id":"MDQ6VXNlcjEwNDU5MzQy","avatar_url":"https://avatars2.githubusercontent.com/u/10459342?v=4","gravatar_id":"","url":"https://api.github.com/users/emilypi","html_url":"https://github.com/emilypi","followers_url":"https://api.github.com/users/emilypi/followers","following_url":"https://api.github.com/users/emilypi/following{/other_user}","gists_url":"https://api.github.com/users/emilypi/gists{/gist_id}","starred_url":"https://api.github.com/users/emilypi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilypi/subscriptions","organizations_url":"https://api.github.com/users/emilypi/orgs","repos_url":"https://api.github.com/users/emilypi/repos","events_url":"https://api.github.com/users/emilypi/events{/privacy}","received_events_url":"https://api.github.com/users/emilypi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-22T18:54:44Z","updated_at":"2019-10-22T18:54:44Z","closed_at":null,"author_association":"NONE","body":"Hey @PaulJohnson \r\n\r\nWould you accept a PR making the `Show` instance flush with the other decimal Haskell types? Currently, the behavior contrasts in the following way: \r\n\r\n```\r\nП> show @Decimal 2.0\r\n\"2\"\r\nП> show @Decimal 2\r\n\"2\"\r\nП> show @Double 2\r\n\"2.0\"\r\nП> show @Double 2.0\r\n\"2.0\"\r\n```\r\n\r\nThis poses a subtle problem when working with stringly-typed APIs and JSON. In the latter case, if read as raw json, `2` is inferred to be an `integer` type, but `2.0` is a `number`. What are your thoughts on this?"}}
{"actor":{"display_login":"emilypi"}}