Skip to content

Instantly share code, notes, and snippets.

@pachun
Created December 27, 2022 19:22
Show Gist options
  • Save pachun/71fa34f4190b52834a5311ad282dcdcf to your computer and use it in GitHub Desktop.
Save pachun/71fa34f4190b52834a5311ad282dcdcf to your computer and use it in GitHub Desktop.
module Main exposing (main)
import Browser
import Html exposing (..)
type alias Model =
{}
type Msg
= NoOp
init : ( Model, Cmd Msg )
init =
( {}, Cmd.none )
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
NoOp ->
( model, Cmd.none )
view : Model -> Html Msg
view _ =
text "hello"
main : Program () Model Msg
main =
Browser.element
{ init = \_ -> init
, update = update
, view = view
, subscriptions = \_ -> Sub.none
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment