the-sett / elm-syntax-dsl

A DSL for creating Elm syntax trees and pretty printing Elm source code.
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

Simple doc comments for method declarations are not possible #42

Open anmolitor opened 3 years ago

anmolitor commented 3 years ago

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).