{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/haskell-mode/issues/932","labels_url":"https://api.github.com/repos/haskell/haskell-mode/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/haskell/haskell-mode/issues/932/comments","events_url":"https://api.github.com/repos/haskell/haskell-mode/issues/932/events","html_url":"https://github.com/haskell/haskell-mode/issues/932","id":111692528,"number":932,"title":"Simple indent vs haskell-indentation when using autofill on comments","user":{"login":"joe9","id":1084520,"avatar_url":"https://avatars.githubusercontent.com/u/1084520?v=3","gravatar_id":"","url":"https://api.github.com/users/joe9","html_url":"https://github.com/joe9","followers_url":"https://api.github.com/users/joe9/followers","following_url":"https://api.github.com/users/joe9/following{/other_user}","gists_url":"https://api.github.com/users/joe9/gists{/gist_id}","starred_url":"https://api.github.com/users/joe9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joe9/subscriptions","organizations_url":"https://api.github.com/users/joe9/orgs","repos_url":"https://api.github.com/users/joe9/repos","events_url":"https://api.github.com/users/joe9/events{/privacy}","received_events_url":"https://api.github.com/users/joe9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-15T19:40:42Z","updated_at":"2015-10-16T14:49:41Z","closed_at":null,"body":"Hello,\r\n\r\nI use autofill on comments. When a comment is more than 70 characters long, autofill wraps the line into a different line and adds the \"--\" to the beginning of the new line.\r\n\r\nFor example\r\n-- This is a comment line in haskell code and it is longer than 70 characters. After the 70th character, the line becomes \r\n\r\nis converted to \r\n\r\n-- This is a comment line in haskell code and it is longer than 70 characters.\r\n-- After the 70th character, the line becomes \r\n\r\nThis is the code that does the above:\r\n(defun haskell-init::comment-auto-fill ()\r\n  (setq-local comment-auto-fill-only-comments t)\r\n  (auto-fill-mode 1))\r\n(add-hook 'haskell-mode-hook 'haskell-init::comment-auto-fill)\r\n\r\nFor some reason, the above indentation works fine with simple-indent but not with haskell-indentation.\r\n\r\nWith haskell-indentation, the above converted line is:\r\n-- This is a comment line in haskell code and it is longer than 70 characters.\r\nAfter the 70th character, the line becomes \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/haskell/haskell-mode/issues/comments/148737359","html_url":"https://github.com/haskell/haskell-mode/issues/932#issuecomment-148737359","issue_url":"https://api.github.com/repos/haskell/haskell-mode/issues/932","id":148737359,"user":{"login":"joe9","id":1084520,"avatar_url":"https://avatars.githubusercontent.com/u/1084520?v=3","gravatar_id":"","url":"https://api.github.com/users/joe9","html_url":"https://github.com/joe9","followers_url":"https://api.github.com/users/joe9/followers","following_url":"https://api.github.com/users/joe9/following{/other_user}","gists_url":"https://api.github.com/users/joe9/gists{/gist_id}","starred_url":"https://api.github.com/users/joe9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joe9/subscriptions","organizations_url":"https://api.github.com/users/joe9/orgs","repos_url":"https://api.github.com/users/joe9/repos","events_url":"https://api.github.com/users/joe9/events{/privacy}","received_events_url":"https://api.github.com/users/joe9/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:49:41Z","updated_at":"2015-10-16T14:49:41Z","body":"@vwyu are you sure about that behaviour when using haskell-simple-indent? That happens when I am using haskell-indentation to me."}}