fill-paragraph doesn't play nice with Haddock comments

Svein Ove Aas svein.ove at aas.no
Thu Nov 26 14:00:28 EST 2009


On Thu, Nov 26, 2009 at 6:31 PM, Deniz Dogan <deniz.a.m.dogan at gmail.com> wrote:
> I have the following Haddock comment in my Haskell file:
>
> -- | Checks that the given indentation is okay in the current context.
>  Updates the indentation state if necessary.
>
> (That should all be on a single line, but Gmail probably messes with
> it on its way to the list.) When running fill-paragraph on that line
> haskell-mode will change it to this:
>
> -- | Checks that the given indentation is okay in the
> -- | current context.  Updates the indentation state if
> -- | necessary.
>
> (fill-column is 60.) However, I think it should do this:
>
> -- | Checks that the given indentation is okay in the
> --   current context.  Updates the indentation state if
> --   necessary.
>
Agreed. Actually, it sometimes does that, and sometimes the former..
and sometimes it mixes comments with code.

Fixing up fill-paragraph is a project I was planning to start on
saturday, so your bug report is just in time. ;)

-- 
Svein Ove Aas



More information about the Haskellmode-emacs mailing list