presentations/highlight-js/test/detect/elm/default.txt

19 lines
434 B
Text
Raw Permalink Normal View History

2018-12-07 08:48:05 -06:00
import Html exposing (div, button, text)
import Html.App exposing (beginnerProgram)
import Html.Events exposing (onClick)
type Msg
= Increment
main =
beginnerProgram
{ model = 0, view = view
, update = \Increment model -> model + 1 }
view model =
div [] [ div [] [ text (toString model) ]
, button [ onClick Increment ] [ text "+" ] ]
chars =
String.cons 'C' <| String.cons 'h' <| "ars"