{"action":"created","issue":{"url":"https://api.github.com/repos/bos/aeson/issues/246","labels_url":"https://api.github.com/repos/bos/aeson/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/bos/aeson/issues/246/comments","events_url":"https://api.github.com/repos/bos/aeson/issues/246/events","html_url":"https://github.com/bos/aeson/issues/246","id":68736657,"number":246,"title":"encodeToTextBuilder hangs","user":{"login":"andrewthad","id":5332484,"avatar_url":"https://avatars.githubusercontent.com/u/5332484?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewthad","html_url":"https://github.com/andrewthad","followers_url":"https://api.github.com/users/andrewthad/followers","following_url":"https://api.github.com/users/andrewthad/following{/other_user}","gists_url":"https://api.github.com/users/andrewthad/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewthad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewthad/subscriptions","organizations_url":"https://api.github.com/users/andrewthad/orgs","repos_url":"https://api.github.com/users/andrewthad/repos","events_url":"https://api.github.com/users/andrewthad/events{/privacy}","received_events_url":"https://api.github.com/users/andrewthad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-15T17:05:45Z","updated_at":"2015-04-15T19:22:55Z","closed_at":null,"body":"Here is a minimal example:\r\n\r\n    import Prelude\r\n    import Data.Aeson\r\n    import Data.Aeson.Encode\r\n    import Data.Text.Lazy.Builder as Builder\r\n    import Data.Text.Lazy as LText\r\n    import Data.Text as Text\r\n    import Data.Text.IO as Text\r\n\r\n    main = Text.putStrLn $ LText.toStrict $ Builder.toLazyText $ encodeToTextBuilder $ object [Text.pack \"test\" .= (2 :: Int)]\r\n\r\nIf I compile and run this, it does not print anything and never terminates. The package set I have installed is Stackage 2.1. The only unusual thing about my GHC install is that it is compiled with `integer-simple` instead of `integer-gmp`. If I call `encode` instead of `encodeToTextBuilder`, this problem does not happen. Can anyone reproduce this issue?"},"comment":{"url":"https://api.github.com/repos/bos/aeson/issues/comments/93538152","html_url":"https://github.com/bos/aeson/issues/246#issuecomment-93538152","issue_url":"https://api.github.com/repos/bos/aeson/issues/246","id":93538152,"user":{"login":"andrewthad","id":5332484,"avatar_url":"https://avatars.githubusercontent.com/u/5332484?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewthad","html_url":"https://github.com/andrewthad","followers_url":"https://api.github.com/users/andrewthad/followers","following_url":"https://api.github.com/users/andrewthad/following{/other_user}","gists_url":"https://api.github.com/users/andrewthad/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewthad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewthad/subscriptions","organizations_url":"https://api.github.com/users/andrewthad/orgs","repos_url":"https://api.github.com/users/andrewthad/repos","events_url":"https://api.github.com/users/andrewthad/events{/privacy}","received_events_url":"https://api.github.com/users/andrewthad/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T19:22:55Z","updated_at":"2015-04-15T19:22:55Z","body":"Oh, so it's almost certainly a problem with it being incompatible with integer-simple. Either that or there's a bug in integer-simple."}}