Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple doc comments for method declarations are not possible #42

Open
anmolitor opened this issue Nov 5, 2021 · 0 comments
Open

Simple doc comments for method declarations are not possible #42

anmolitor opened this issue Nov 5, 2021 · 0 comments

Comments

@anmolitor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant