port module Main exposing (main) import Html exposing (..) -- it shouldn't fail because there are line-comments {- or block comments -} type Msg = NoOp type alias Model = Int view : Model -> Html Msg view model = div [] [ text (toString model) ] init : String -> ( Model, Cmd Msg ) init flags = ( 0, Cmd.none ) update : Msg -> Model -> ( Model, Cmd Msg ) update msg model = case msg of NoOp -> ( model, Cmd.none ) main : Program String Model Msg main = Html.programWithFlags { init = init , update = update , view = view , subscriptions = \_ -> Sub.none }