You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{-| Don't create anything in the DOM. This is useful when you have a conditionnaland 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:Nodemsgnone =
text ""
And here is the generated code:
none
none:Nodemsg
Don't create anything in the DOM. This is useful when you have a conditionnal
and are forced to return a Node.
textOrNone:MaybeString->NodemsgtextOrNone value =
case value of
Nothing ->
BodyBuilder.none
Just content ->
BodyBuilder.text content
The text was updated successfully, but these errors were encountered:
I get a weird behavior when using elm-docs:
Here is the original code:
And here is the generated code:
none
Don't create anything in the DOM. This is useful when you have a conditionnal
and are forced to return a Node.
The text was updated successfully, but these errors were encountered: