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

Separate signatures from body #3

Open
ghivert opened this issue Dec 6, 2017 · 0 comments
Open

Separate signatures from body #3

ghivert opened this issue Dec 6, 2017 · 0 comments

Comments

@ghivert
Copy link

ghivert commented Dec 6, 2017

I get a weird behavior when using elm-docs:

Here is the original code:

{-| Don't create anything in the DOM. This is useful when you have a conditionnal
and are forced to return a Node.

    textOrNone : Maybe String -> Node msg
    textOrNone value =
        case value of
            Nothing ->
                BodyBuilder.none

            Just content ->
                BodyBuilder.text content

-}
none : Node msg
none =
    text ""

And here is the generated code:

none

none : Node msg

Don't create anything in the DOM. This is useful when you have a conditionnal
and are forced to return a Node.

textOrNone : Maybe String -> Node msg
textOrNone value =
    case value of
        Nothing ->
            BodyBuilder.none

        Just content ->
            BodyBuilder.text content
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