{"action":"created","issue":{"url":"https://api.github.com/repos/chrisdone/hindent/issues/71","labels_url":"https://api.github.com/repos/chrisdone/hindent/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/chrisdone/hindent/issues/71/comments","events_url":"https://api.github.com/repos/chrisdone/hindent/issues/71/events","html_url":"https://github.com/chrisdone/hindent/pull/71","id":54685145,"number":71,"title":"Added style tonyDay & hindent-reformat-module to hindent.el","user":{"login":"tonyday567","id":1622093,"avatar_url":"https://avatars.githubusercontent.com/u/1622093?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyday567","html_url":"https://github.com/tonyday567","followers_url":"https://api.github.com/users/tonyday567/followers","following_url":"https://api.github.com/users/tonyday567/following{/other_user}","gists_url":"https://api.github.com/users/tonyday567/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyday567/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyday567/subscriptions","organizations_url":"https://api.github.com/users/tonyday567/orgs","repos_url":"https://api.github.com/users/tonyday567/repos","events_url":"https://api.github.com/users/tonyday567/events{/privacy}","received_events_url":"https://api.github.com/users/tonyday567/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-18T03:48:32Z","updated_at":"2015-01-18T12:53:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chrisdone/hindent/pulls/71","html_url":"https://github.com/chrisdone/hindent/pull/71","diff_url":"https://github.com/chrisdone/hindent/pull/71.diff","patch_url":"https://github.com/chrisdone/hindent/pull/71.patch"},"body":"The new style:\r\n- adds an opinionated way to reformat an entire module\r\n- cleans up pragmas and imports\r\n- uses chrisDone for everything else (I'm not opinionated on this choice).\r\n\r\nAn alternative would be to integrate these ideas into the main code:\r\n- argue that my module extension is idiomatic\r\n- incorporate the cleanup's in the main code\r\n- add a flag to Main.hs such as --cleanup, so that any other style can be used together with the cleanup idea.\r\n\r\nMore generally, there is some mis-match between applying a style to an entire module/file/string and applying a style to chunks (eg the test framework is hard-coded like that).  Hence the addition of hindent-reformat-module.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/chrisdone/hindent/issues/comments/70407231","html_url":"https://github.com/chrisdone/hindent/pull/71#issuecomment-70407231","issue_url":"https://api.github.com/repos/chrisdone/hindent/issues/71","id":70407231,"user":{"login":"chrisdone","id":11019,"avatar_url":"https://avatars.githubusercontent.com/u/11019?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdone","html_url":"https://github.com/chrisdone","followers_url":"https://api.github.com/users/chrisdone/followers","following_url":"https://api.github.com/users/chrisdone/following{/other_user}","gists_url":"https://api.github.com/users/chrisdone/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdone/subscriptions","organizations_url":"https://api.github.com/users/chrisdone/orgs","repos_url":"https://api.github.com/users/chrisdone/repos","events_url":"https://api.github.com/users/chrisdone/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdone/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T12:53:17Z","updated_at":"2015-01-18T12:53:17Z","body":"> More generally, there is some mis-match between applying a style to an entire module/file/string and applying a style to chunks (eg the test framework is hard-coded like that). Hence the addition of hindent-reformat-module.\r\n\r\nI think @gibiansky already addressed this with the `>` trick."}}