Skip to content

Separate signatures from body #3

@ghivert

Description

@ghivert

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

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