the-sett/elm-syntax-dsl

Simple doc comments for method declarations are not possible

Opened this issue · 0 comments

Hi there,
unless I'm missing something a simple comment above a method declaration like this one

{-| Creates an empty comment of any type.
-}
emptyComment : Comment a
emptyComment =
    Comment []

is not possible. The building block markdown inserts 2 blank lines below and the building block code indents the text to the right. Markdown sort of looks fine, but it does not meet the goal of the package, namely that elm-format has no effect (elm-format removes the empty lines).