Files
Document-Management-System-…/vendor/scrivo/highlight.php/test/detect/elm/default.txt
2021-04-07 19:25:18 -04:00

23 lines
435 B
Plaintext
Vendored

import Browser
import Html exposing (div, button, text)
import Html.Events exposing (onClick)
type Msg
= Increment
main =
Browser.sandbox
{ init = 0
, update = \msg model -> model + 1
, view = view
}
view model =
div []
[ div [] [ text (String.fromInt model) ]
, button [ onClick Increment ] [ text "+" ]
]
chars =
String.cons 'C' <| String.cons 'h' <| "ars"