{"action":"created","comment":{"url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/comments/312463740","pull_request_review_id":273113236,"id":312463740,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMjQ2Mzc0MA==","diff_hunk":"@@ -0,0 +1,21 @@\n+module Exercise1\n+  ( runTests\n+  , toDigits\n+  , toDigitsRev ) where\n+\n+import           Assert\n+\n+runTests :: IO ()\n+runTests = do\n+  assert \"ex1.1 given -1, expect empty list\" $ null (toDigits (-1))\n+  assert \"ex1.1 given 0, expect empty list\" $ null (toDigitsRev 0)\n+  assert \"ex1.1 given num, expect list\" $ [1..9] == toDigits 123456789\n+  assert \"ex1.1 given num, expect reverse list\" $ reverse [1..9] == toDigitsRev 123456789\n+\n+toDigits :: Integer -> [Integer]\n+toDigitsRev :: Integer -> [Integer]\n+\n+toDigitsRev x | x <= 0    = []\n+              | x > 0 && x < 10 = [x]\n+              | otherwise = (x `mod` 10 ): toDigitsRev (x `div` 10)","path":"cis194/week1/wei-ning/src/Exercise1.hs","position":20,"original_position":20,"commit_id":"7a8a3953a4c634130a0a7de811cf7aa8b049d225","original_commit_id":"7a8a3953a4c634130a0a7de811cf7aa8b049d225","user":{"login":"zehua","id":314392,"node_id":"MDQ6VXNlcjMxNDM5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/314392?v=4","gravatar_id":"","url":"https://api.github.com/users/zehua","html_url":"https://github.com/zehua","followers_url":"https://api.github.com/users/zehua/followers","following_url":"https://api.github.com/users/zehua/following{/other_user}","gists_url":"https://api.github.com/users/zehua/gists{/gist_id}","starred_url":"https://api.github.com/users/zehua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zehua/subscriptions","organizations_url":"https://api.github.com/users/zehua/orgs","repos_url":"https://api.github.com/users/zehua/repos","events_url":"https://api.github.com/users/zehua/events{/privacy}","received_events_url":"https://api.github.com/users/zehua/received_events","type":"User","site_admin":false},"body":"space before `:` /nit","created_at":"2019-08-09T12:50:07Z","updated_at":"2019-08-09T12:52:02Z","html_url":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4#discussion_r312463740","pull_request_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/comments/312463740"},"html":{"href":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4#discussion_r312463740"},"pull_request":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4","id":305894760,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA1ODk0NzYw","html_url":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4","diff_url":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4.diff","patch_url":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4.patch","issue_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/4","number":4,"state":"open","locked":false,"title":"Wei Ning's CIS 194 Week-1 homework","user":{"login":"powergun","id":46513903,"node_id":"MDQ6VXNlcjQ2NTEzOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/46513903?v=4","gravatar_id":"","url":"https://api.github.com/users/powergun","html_url":"https://github.com/powergun","followers_url":"https://api.github.com/users/powergun/followers","following_url":"https://api.github.com/users/powergun/following{/other_user}","gists_url":"https://api.github.com/users/powergun/gists{/gist_id}","starred_url":"https://api.github.com/users/powergun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powergun/subscriptions","organizations_url":"https://api.github.com/users/powergun/orgs","repos_url":"https://api.github.com/users/powergun/repos","events_url":"https://api.github.com/users/powergun/events{/privacy}","received_events_url":"https://api.github.com/users/powergun/received_events","type":"User","site_admin":false},"body":"Hi Shine,\r\nPlease take a look at my homework. \r\nMy apology for late submission. \r\nI'm not too sure if the coding style is correct (I'm using the default setting of stylish haskell).\r\nPlease run `stack test` to execute the test cases.\r\n\r\nThank you very much! I really enjoyed the first week of learning.","created_at":"2019-08-09T08:42:54Z","updated_at":"2019-08-09T12:52:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d79f80d741fb8bea1825b7d7dec4985095f3f68","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4/commits","review_comments_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4/comments","review_comment_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/4/comments","statuses_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/statuses/7a8a3953a4c634130a0a7de811cf7aa8b049d225","head":{"label":"powergun:master","ref":"master","sha":"7a8a3953a4c634130a0a7de811cf7aa8b049d225","user":{"login":"powergun","id":46513903,"node_id":"MDQ6VXNlcjQ2NTEzOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/46513903?v=4","gravatar_id":"","url":"https://api.github.com/users/powergun","html_url":"https://github.com/powergun","followers_url":"https://api.github.com/users/powergun/followers","following_url":"https://api.github.com/users/powergun/following{/other_user}","gists_url":"https://api.github.com/users/powergun/gists{/gist_id}","starred_url":"https://api.github.com/users/powergun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powergun/subscriptions","organizations_url":"https://api.github.com/users/powergun/orgs","repos_url":"https://api.github.com/users/powergun/repos","events_url":"https://api.github.com/users/powergun/events{/privacy}","received_events_url":"https://api.github.com/users/powergun/received_events","type":"User","site_admin":false},"repo":{"id":201426312,"node_id":"MDEwOlJlcG9zaXRvcnkyMDE0MjYzMTI=","name":"2019-winter-Haskell-school","full_name":"powergun/2019-winter-Haskell-school","private":false,"owner":{"login":"powergun","id":46513903,"node_id":"MDQ6VXNlcjQ2NTEzOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/46513903?v=4","gravatar_id":"","url":"https://api.github.com/users/powergun","html_url":"https://github.com/powergun","followers_url":"https://api.github.com/users/powergun/followers","following_url":"https://api.github.com/users/powergun/following{/other_user}","gists_url":"https://api.github.com/users/powergun/gists{/gist_id}","starred_url":"https://api.github.com/users/powergun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powergun/subscriptions","organizations_url":"https://api.github.com/users/powergun/orgs","repos_url":"https://api.github.com/users/powergun/repos","events_url":"https://api.github.com/users/powergun/events{/privacy}","received_events_url":"https://api.github.com/users/powergun/received_events","type":"User","site_admin":false},"html_url":"https://github.com/powergun/2019-winter-Haskell-school","description":"2019 winter Haskell school in Sydney Australia ","fork":true,"url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school","forks_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/forks","keys_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/keys{/key_id}","collaborators_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/teams","hooks_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/hooks","issue_events_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/issues/events{/number}","events_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/events","assignees_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/assignees{/user}","branches_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/branches{/branch}","tags_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/tags","blobs_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/git/refs{/sha}","trees_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/git/trees{/sha}","statuses_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/statuses/{sha}","languages_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/languages","stargazers_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/stargazers","contributors_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/contributors","subscribers_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/subscribers","subscription_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/subscription","commits_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/commits{/sha}","git_commits_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/git/commits{/sha}","comments_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/comments{/number}","issue_comment_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/issues/comments{/number}","contents_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/contents/{+path}","compare_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/compare/{base}...{head}","merges_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/merges","archive_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/downloads","issues_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/issues{/number}","pulls_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/pulls{/number}","milestones_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/milestones{/number}","notifications_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/labels{/name}","releases_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/releases{/id}","deployments_url":"https://api.github.com/repos/powergun/2019-winter-Haskell-school/deployments","created_at":"2019-08-09T08:31:49Z","updated_at":"2019-08-09T08:35:13Z","pushed_at":"2019-08-09T08:35:11Z","git_url":"git://github.com/powergun/2019-winter-Haskell-school.git","ssh_url":"git@github.com:powergun/2019-winter-Haskell-school.git","clone_url":"https://github.com/powergun/2019-winter-Haskell-school.git","svn_url":"https://github.com/powergun/2019-winter-Haskell-school","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fp-works:master","ref":"master","sha":"990b9229a17cbc48b4ba4feba49286591713f9fa","user":{"login":"fp-works","id":52158993,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMTU4OTkz","avatar_url":"https://avatars2.githubusercontent.com/u/52158993?v=4","gravatar_id":"","url":"https://api.github.com/users/fp-works","html_url":"https://github.com/fp-works","followers_url":"https://api.github.com/users/fp-works/followers","following_url":"https://api.github.com/users/fp-works/following{/other_user}","gists_url":"https://api.github.com/users/fp-works/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-works/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-works/subscriptions","organizations_url":"https://api.github.com/users/fp-works/orgs","repos_url":"https://api.github.com/users/fp-works/repos","events_url":"https://api.github.com/users/fp-works/events{/privacy}","received_events_url":"https://api.github.com/users/fp-works/received_events","type":"Organization","site_admin":false},"repo":{"id":200741079,"node_id":"MDEwOlJlcG9zaXRvcnkyMDA3NDEwNzk=","name":"2019-winter-Haskell-school","full_name":"fp-works/2019-winter-Haskell-school","private":false,"owner":{"login":"fp-works","id":52158993,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyMTU4OTkz","avatar_url":"https://avatars2.githubusercontent.com/u/52158993?v=4","gravatar_id":"","url":"https://api.github.com/users/fp-works","html_url":"https://github.com/fp-works","followers_url":"https://api.github.com/users/fp-works/followers","following_url":"https://api.github.com/users/fp-works/following{/other_user}","gists_url":"https://api.github.com/users/fp-works/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-works/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-works/subscriptions","organizations_url":"https://api.github.com/users/fp-works/orgs","repos_url":"https://api.github.com/users/fp-works/repos","events_url":"https://api.github.com/users/fp-works/events{/privacy}","received_events_url":"https://api.github.com/users/fp-works/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fp-works/2019-winter-Haskell-school","description":"2019 winter Haskell school in Sydney Australia ","fork":false,"url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school","forks_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/forks","keys_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/teams","hooks_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/hooks","issue_events_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/events{/number}","events_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/events","assignees_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/assignees{/user}","branches_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/branches{/branch}","tags_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/tags","blobs_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/git/refs{/sha}","trees_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/statuses/{sha}","languages_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/languages","stargazers_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/stargazers","contributors_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/contributors","subscribers_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/subscribers","subscription_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/subscription","commits_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/commits{/sha}","git_commits_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/git/commits{/sha}","comments_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/comments{/number}","issue_comment_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/comments{/number}","contents_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/contents/{+path}","compare_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/merges","archive_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/downloads","issues_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues{/number}","pulls_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls{/number}","milestones_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/milestones{/number}","notifications_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/labels{/name}","releases_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/releases{/id}","deployments_url":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/deployments","created_at":"2019-08-05T23:10:20Z","updated_at":"2019-08-09T11:46:10Z","pushed_at":"2019-08-09T12:38:34Z","git_url":"git://github.com/fp-works/2019-winter-Haskell-school.git","ssh_url":"git@github.com:fp-works/2019-winter-Haskell-school.git","clone_url":"https://github.com/fp-works/2019-winter-Haskell-school.git","svn_url":"https://github.com/fp-works/2019-winter-Haskell-school","homepage":null,"size":17,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4"},"html":{"href":"https://github.com/fp-works/2019-winter-Haskell-school/pull/4"},"issue":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/4"},"comments":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/fp-works/2019-winter-Haskell-school/statuses/7a8a3953a4c634130a0a7de811cf7aa8b049d225"}},"author_association":"NONE"}}
{"actor":{"display_login":"zehua"}}