{"action":"created","comment":{"url":"https://api.github.com/repos/kowainik/tomland/pulls/comments/178110539","pull_request_review_id":108113718,"id":178110539,"diff_hunk":"@@ -0,0 +1,46 @@\n+module Main where\n+\n+import Data.HashMap.Strict (HashMap, fromList)\n+import Data.Time (fromGregorian)\n+\n+import Toml.Printer (toml2Text)\n+import Toml.Type (DateTime (..), Key (..), TOML (..), TableId (..), Value (..))\n+\n+import qualified Data.List.NonEmpty as NonEmpty\n+import qualified Data.Text as Text\n+\n+main :: IO ()\n+main = putStrLn $ Text.unpack $ toml2Text myToml","path":"examples/Playground.hs","position":13,"original_position":13,"commit_id":"a7d634df734a77dc8c8888b4e8b2bf5f9be2b9fb","original_commit_id":"a7d634df734a77dc8c8888b4e8b2bf5f9be2b9fb","user":{"login":"ChShersh","id":4276606,"avatar_url":"https://avatars0.githubusercontent.com/u/4276606?v=4","gravatar_id":"","url":"https://api.github.com/users/ChShersh","html_url":"https://github.com/ChShersh","followers_url":"https://api.github.com/users/ChShersh/followers","following_url":"https://api.github.com/users/ChShersh/following{/other_user}","gists_url":"https://api.github.com/users/ChShersh/gists{/gist_id}","starred_url":"https://api.github.com/users/ChShersh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChShersh/subscriptions","organizations_url":"https://api.github.com/users/ChShersh/orgs","repos_url":"https://api.github.com/users/ChShersh/repos","events_url":"https://api.github.com/users/ChShersh/events{/privacy}","received_events_url":"https://api.github.com/users/ChShersh/received_events","type":"User","site_admin":false},"body":"You can use `putStrLn` from `Data.Text.IO` module to avoid `unpack`.","created_at":"2018-03-29T16:24:50Z","updated_at":"2018-03-29T16:41:57Z","html_url":"https://github.com/kowainik/tomland/pull/6#discussion_r178110539","pull_request_url":"https://api.github.com/repos/kowainik/tomland/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/comments/178110539"},"html":{"href":"https://github.com/kowainik/tomland/pull/6#discussion_r178110539"},"pull_request":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/kowainik/tomland/pulls/6","id":178363200,"html_url":"https://github.com/kowainik/tomland/pull/6","diff_url":"https://github.com/kowainik/tomland/pull/6.diff","patch_url":"https://github.com/kowainik/tomland/pull/6.patch","issue_url":"https://api.github.com/repos/kowainik/tomland/issues/6","number":6,"state":"open","locked":false,"title":"[#4] Add basic pretty-printer","user":{"login":"vrom911","id":8126674,"avatar_url":"https://avatars3.githubusercontent.com/u/8126674?v=4","gravatar_id":"","url":"https://api.github.com/users/vrom911","html_url":"https://github.com/vrom911","followers_url":"https://api.github.com/users/vrom911/followers","following_url":"https://api.github.com/users/vrom911/following{/other_user}","gists_url":"https://api.github.com/users/vrom911/gists{/gist_id}","starred_url":"https://api.github.com/users/vrom911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrom911/subscriptions","organizations_url":"https://api.github.com/users/vrom911/orgs","repos_url":"https://api.github.com/users/vrom911/repos","events_url":"https://api.github.com/users/vrom911/events{/privacy}","received_events_url":"https://api.github.com/users/vrom911/received_events","type":"User","site_admin":false},"body":"Resolves #4 \r\nI've created `playground` where now you can see the result of printing some example `toml` file. You can `stack exec play-tomland` for that.\r\nAlso I didn't touch `tomlTableArrays` for the moment as was discussed.","created_at":"2018-03-29T15:27:59Z","updated_at":"2018-03-29T16:41:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"684fbf99b5327b2c95e5c1e7af1f8c7c40c354b5","assignee":{"login":"vrom911","id":8126674,"avatar_url":"https://avatars3.githubusercontent.com/u/8126674?v=4","gravatar_id":"","url":"https://api.github.com/users/vrom911","html_url":"https://github.com/vrom911","followers_url":"https://api.github.com/users/vrom911/followers","following_url":"https://api.github.com/users/vrom911/following{/other_user}","gists_url":"https://api.github.com/users/vrom911/gists{/gist_id}","starred_url":"https://api.github.com/users/vrom911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrom911/subscriptions","organizations_url":"https://api.github.com/users/vrom911/orgs","repos_url":"https://api.github.com/users/vrom911/repos","events_url":"https://api.github.com/users/vrom911/events{/privacy}","received_events_url":"https://api.github.com/users/vrom911/received_events","type":"User","site_admin":false},"assignees":[{"login":"vrom911","id":8126674,"avatar_url":"https://avatars3.githubusercontent.com/u/8126674?v=4","gravatar_id":"","url":"https://api.github.com/users/vrom911","html_url":"https://github.com/vrom911","followers_url":"https://api.github.com/users/vrom911/followers","following_url":"https://api.github.com/users/vrom911/following{/other_user}","gists_url":"https://api.github.com/users/vrom911/gists{/gist_id}","starred_url":"https://api.github.com/users/vrom911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrom911/subscriptions","organizations_url":"https://api.github.com/users/vrom911/orgs","repos_url":"https://api.github.com/users/vrom911/repos","events_url":"https://api.github.com/users/vrom911/events{/privacy}","received_events_url":"https://api.github.com/users/vrom911/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":870376863,"url":"https://api.github.com/repos/kowainik/tomland/labels/pretty-printer","name":"pretty-printer","color":"6863ce","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kowainik/tomland/pulls/6/commits","review_comments_url":"https://api.github.com/repos/kowainik/tomland/pulls/6/comments","review_comment_url":"https://api.github.com/repos/kowainik/tomland/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kowainik/tomland/issues/6/comments","statuses_url":"https://api.github.com/repos/kowainik/tomland/statuses/a7d634df734a77dc8c8888b4e8b2bf5f9be2b9fb","head":{"label":"kowainik:vrom911/4-pretty-printer","ref":"vrom911/4-pretty-printer","sha":"a7d634df734a77dc8c8888b4e8b2bf5f9be2b9fb","user":{"login":"kowainik","id":37126241,"avatar_url":"https://avatars3.githubusercontent.com/u/37126241?v=4","gravatar_id":"","url":"https://api.github.com/users/kowainik","html_url":"https://github.com/kowainik","followers_url":"https://api.github.com/users/kowainik/followers","following_url":"https://api.github.com/users/kowainik/following{/other_user}","gists_url":"https://api.github.com/users/kowainik/gists{/gist_id}","starred_url":"https://api.github.com/users/kowainik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowainik/subscriptions","organizations_url":"https://api.github.com/users/kowainik/orgs","repos_url":"https://api.github.com/users/kowainik/repos","events_url":"https://api.github.com/users/kowainik/events{/privacy}","received_events_url":"https://api.github.com/users/kowainik/received_events","type":"Organization","site_admin":false},"repo":{"id":125436266,"name":"tomland","full_name":"kowainik/tomland","owner":{"login":"kowainik","id":37126241,"avatar_url":"https://avatars3.githubusercontent.com/u/37126241?v=4","gravatar_id":"","url":"https://api.github.com/users/kowainik","html_url":"https://github.com/kowainik","followers_url":"https://api.github.com/users/kowainik/followers","following_url":"https://api.github.com/users/kowainik/following{/other_user}","gists_url":"https://api.github.com/users/kowainik/gists{/gist_id}","starred_url":"https://api.github.com/users/kowainik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowainik/subscriptions","organizations_url":"https://api.github.com/users/kowainik/orgs","repos_url":"https://api.github.com/users/kowainik/repos","events_url":"https://api.github.com/users/kowainik/events{/privacy}","received_events_url":"https://api.github.com/users/kowainik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kowainik/tomland","description":":memo: Bidirectional TOML parser and renderer","fork":false,"url":"https://api.github.com/repos/kowainik/tomland","forks_url":"https://api.github.com/repos/kowainik/tomland/forks","keys_url":"https://api.github.com/repos/kowainik/tomland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kowainik/tomland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kowainik/tomland/teams","hooks_url":"https://api.github.com/repos/kowainik/tomland/hooks","issue_events_url":"https://api.github.com/repos/kowainik/tomland/issues/events{/number}","events_url":"https://api.github.com/repos/kowainik/tomland/events","assignees_url":"https://api.github.com/repos/kowainik/tomland/assignees{/user}","branches_url":"https://api.github.com/repos/kowainik/tomland/branches{/branch}","tags_url":"https://api.github.com/repos/kowainik/tomland/tags","blobs_url":"https://api.github.com/repos/kowainik/tomland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kowainik/tomland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kowainik/tomland/git/refs{/sha}","trees_url":"https://api.github.com/repos/kowainik/tomland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kowainik/tomland/statuses/{sha}","languages_url":"https://api.github.com/repos/kowainik/tomland/languages","stargazers_url":"https://api.github.com/repos/kowainik/tomland/stargazers","contributors_url":"https://api.github.com/repos/kowainik/tomland/contributors","subscribers_url":"https://api.github.com/repos/kowainik/tomland/subscribers","subscription_url":"https://api.github.com/repos/kowainik/tomland/subscription","commits_url":"https://api.github.com/repos/kowainik/tomland/commits{/sha}","git_commits_url":"https://api.github.com/repos/kowainik/tomland/git/commits{/sha}","comments_url":"https://api.github.com/repos/kowainik/tomland/comments{/number}","issue_comment_url":"https://api.github.com/repos/kowainik/tomland/issues/comments{/number}","contents_url":"https://api.github.com/repos/kowainik/tomland/contents/{+path}","compare_url":"https://api.github.com/repos/kowainik/tomland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kowainik/tomland/merges","archive_url":"https://api.github.com/repos/kowainik/tomland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kowainik/tomland/downloads","issues_url":"https://api.github.com/repos/kowainik/tomland/issues{/number}","pulls_url":"https://api.github.com/repos/kowainik/tomland/pulls{/number}","milestones_url":"https://api.github.com/repos/kowainik/tomland/milestones{/number}","notifications_url":"https://api.github.com/repos/kowainik/tomland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kowainik/tomland/labels{/name}","releases_url":"https://api.github.com/repos/kowainik/tomland/releases{/id}","deployments_url":"https://api.github.com/repos/kowainik/tomland/deployments","created_at":"2018-03-15T23:06:02Z","updated_at":"2018-03-23T12:13:32Z","pushed_at":"2018-03-29T15:28:00Z","git_url":"git://github.com/kowainik/tomland.git","ssh_url":"git@github.com:kowainik/tomland.git","clone_url":"https://github.com/kowainik/tomland.git","svn_url":"https://github.com/kowainik/tomland","homepage":"","size":14,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"kowainik:master","ref":"master","sha":"fb799294375c51ecf80229ac628bd9fae86f883d","user":{"login":"kowainik","id":37126241,"avatar_url":"https://avatars3.githubusercontent.com/u/37126241?v=4","gravatar_id":"","url":"https://api.github.com/users/kowainik","html_url":"https://github.com/kowainik","followers_url":"https://api.github.com/users/kowainik/followers","following_url":"https://api.github.com/users/kowainik/following{/other_user}","gists_url":"https://api.github.com/users/kowainik/gists{/gist_id}","starred_url":"https://api.github.com/users/kowainik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowainik/subscriptions","organizations_url":"https://api.github.com/users/kowainik/orgs","repos_url":"https://api.github.com/users/kowainik/repos","events_url":"https://api.github.com/users/kowainik/events{/privacy}","received_events_url":"https://api.github.com/users/kowainik/received_events","type":"Organization","site_admin":false},"repo":{"id":125436266,"name":"tomland","full_name":"kowainik/tomland","owner":{"login":"kowainik","id":37126241,"avatar_url":"https://avatars3.githubusercontent.com/u/37126241?v=4","gravatar_id":"","url":"https://api.github.com/users/kowainik","html_url":"https://github.com/kowainik","followers_url":"https://api.github.com/users/kowainik/followers","following_url":"https://api.github.com/users/kowainik/following{/other_user}","gists_url":"https://api.github.com/users/kowainik/gists{/gist_id}","starred_url":"https://api.github.com/users/kowainik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowainik/subscriptions","organizations_url":"https://api.github.com/users/kowainik/orgs","repos_url":"https://api.github.com/users/kowainik/repos","events_url":"https://api.github.com/users/kowainik/events{/privacy}","received_events_url":"https://api.github.com/users/kowainik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kowainik/tomland","description":":memo: Bidirectional TOML parser and renderer","fork":false,"url":"https://api.github.com/repos/kowainik/tomland","forks_url":"https://api.github.com/repos/kowainik/tomland/forks","keys_url":"https://api.github.com/repos/kowainik/tomland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kowainik/tomland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kowainik/tomland/teams","hooks_url":"https://api.github.com/repos/kowainik/tomland/hooks","issue_events_url":"https://api.github.com/repos/kowainik/tomland/issues/events{/number}","events_url":"https://api.github.com/repos/kowainik/tomland/events","assignees_url":"https://api.github.com/repos/kowainik/tomland/assignees{/user}","branches_url":"https://api.github.com/repos/kowainik/tomland/branches{/branch}","tags_url":"https://api.github.com/repos/kowainik/tomland/tags","blobs_url":"https://api.github.com/repos/kowainik/tomland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kowainik/tomland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kowainik/tomland/git/refs{/sha}","trees_url":"https://api.github.com/repos/kowainik/tomland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kowainik/tomland/statuses/{sha}","languages_url":"https://api.github.com/repos/kowainik/tomland/languages","stargazers_url":"https://api.github.com/repos/kowainik/tomland/stargazers","contributors_url":"https://api.github.com/repos/kowainik/tomland/contributors","subscribers_url":"https://api.github.com/repos/kowainik/tomland/subscribers","subscription_url":"https://api.github.com/repos/kowainik/tomland/subscription","commits_url":"https://api.github.com/repos/kowainik/tomland/commits{/sha}","git_commits_url":"https://api.github.com/repos/kowainik/tomland/git/commits{/sha}","comments_url":"https://api.github.com/repos/kowainik/tomland/comments{/number}","issue_comment_url":"https://api.github.com/repos/kowainik/tomland/issues/comments{/number}","contents_url":"https://api.github.com/repos/kowainik/tomland/contents/{+path}","compare_url":"https://api.github.com/repos/kowainik/tomland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kowainik/tomland/merges","archive_url":"https://api.github.com/repos/kowainik/tomland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kowainik/tomland/downloads","issues_url":"https://api.github.com/repos/kowainik/tomland/issues{/number}","pulls_url":"https://api.github.com/repos/kowainik/tomland/pulls{/number}","milestones_url":"https://api.github.com/repos/kowainik/tomland/milestones{/number}","notifications_url":"https://api.github.com/repos/kowainik/tomland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kowainik/tomland/labels{/name}","releases_url":"https://api.github.com/repos/kowainik/tomland/releases{/id}","deployments_url":"https://api.github.com/repos/kowainik/tomland/deployments","created_at":"2018-03-15T23:06:02Z","updated_at":"2018-03-23T12:13:32Z","pushed_at":"2018-03-29T15:28:00Z","git_url":"git://github.com/kowainik/tomland.git","ssh_url":"git@github.com:kowainik/tomland.git","clone_url":"https://github.com/kowainik/tomland.git","svn_url":"https://github.com/kowainik/tomland","homepage":"","size":14,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/6"},"html":{"href":"https://github.com/kowainik/tomland/pull/6"},"issue":{"href":"https://api.github.com/repos/kowainik/tomland/issues/6"},"comments":{"href":"https://api.github.com/repos/kowainik/tomland/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kowainik/tomland/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/kowainik/tomland/statuses/a7d634df734a77dc8c8888b4e8b2bf5f9be2b9fb"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ChShersh"}}