module Main exposing (..)

import Html
import Init
import Model exposing (Model, Controller)
import Update exposing (update)
import View exposing (view)


-- INIT


main : Program Never Model Controller
main =
    Html.program
        { init = Init.init
        , update = update
        , subscriptions = subscriptions
        , view = view
        }



-- SUBSCRIPTIONS


subscriptions : Model -> Sub Controller
subscriptions model =
    Sub.none

module Main exposing (..)

import Browser
import Html
import Init
import Model exposing (Model, Controller)
import Update exposing (update)
import View exposing (view)


-- INIT


main : Program Never Model Controller
main =
    Browser.element
        { init = Init.init
        , update = update
        , subscriptions = subscriptions
        , view = view
        }



-- SUBSCRIPTIONS


subscriptions : Model -> Sub Controller
subscriptions model =
    Sub.none

Use Browser instead of Html.program
Upgrade: Use Browser instead of Html.program
