{"action":"created","issue":{"url":"https://api.github.com/repos/chrisdone/hindent/issues/75","labels_url":"https://api.github.com/repos/chrisdone/hindent/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/chrisdone/hindent/issues/75/comments","events_url":"https://api.github.com/repos/chrisdone/hindent/issues/75/events","html_url":"https://github.com/chrisdone/hindent/issues/75","id":54695802,"number":75,"title":"Support --refactor flag ","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},"labels":[{"url":"https://api.github.com/repos/chrisdone/hindent/labels/enhancement","name":"enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-18T13:01:49Z","updated_at":"2015-01-18T16:37:08Z","closed_at":null,"body":"Opening as a separate ticket to track any further discussion. As `configRefactor :: Bool`. This'll allow a style to make static transformations to the AST which styles normally shouldn't do (as it can be annoying to have things removed when you're in the middle of something). Copy the transformations from the `TonyDay` module and put them in e.g. `HIndent.Refactor` or something. Styles can import this for now. \r\n\r\nI don't have a story for handling when a style wants to refactor something differently to the default, so for now it's easier if styles \"opt-in\" than get it by default and struggle to workaround it.\r\n\r\nPinging @gibiansky @tonyday567"},"comment":{"url":"https://api.github.com/repos/chrisdone/hindent/issues/comments/70414943","html_url":"https://github.com/chrisdone/hindent/issues/75#issuecomment-70414943","issue_url":"https://api.github.com/repos/chrisdone/hindent/issues/75","id":70414943,"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-18T16:37:08Z","updated_at":"2015-01-18T16:37:08Z","body":"904beb5 reverts @tonyday567's rewriting and also the `--refactor` flag, but the [refactoring](https://github.com/chrisdone/hindent/tree/refactoring) branch has that code."}}