Skip to content

fill-paragraph is completely broken in literate-haskell-mode #1594

Closed
@raxod502

Description

@raxod502

Consider the following text in test.lhs:

Every expression in Haskell has a type which is determined at compile
time. All the types composed together by function application have to
match up. If they don't, the program will be rejected by the
compiler. Types become not only a form of guarantee, but a language
for expressing the construction of programs.

Running emacs -Q, I load the latest revision of haskell-mode (d71cca7) and press M-q with point on the second line of the file. Result:

Every expression in Haskell has a type which is determined at compile
 time. All the types composed together by function application have to
 match up. If they don't, the program will be rejected by the
 compiler. Types become not only a form of guarantee, but a language
 for expressing the construction of programs.

Pressing M-q multiple times gets me to something like this:

Every expression in Haskell has a type which is determined at compile
             time. All the types composed together by function
             application have to match up. If they don't, the program
             will be rejected by the compiler. Types become not only a
             form of guarantee, but a language for expressing the
             construction of programs.

What??


Emacs version: 26.1-rc1 installed from Homebrew
Operating system: macOS 10.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions