26 lines
532 B
Elm
26 lines
532 B
Elm
|
import CacheSim.Model exposing (..)
|
||
|
import Browser exposing (Document, document)
|
||
|
import Html exposing (text)
|
||
|
|
||
|
init : Flags -> (Model, Cmd Msg)
|
||
|
init f = ((), Cmd.none)
|
||
|
|
||
|
view : Model -> Document Msg
|
||
|
view m =
|
||
|
{ title = "Cache Simulator"
|
||
|
, body = [ text "Hello, world!" ]
|
||
|
}
|
||
|
|
||
|
update : Msg -> Model -> (Model, Cmd Msg)
|
||
|
update msg m = (m, Cmd.none)
|
||
|
|
||
|
subscriptions : Model -> Sub Msg
|
||
|
subscriptions m = Sub.none
|
||
|
|
||
|
main = document
|
||
|
{ init = init
|
||
|
, view = view
|
||
|
, update = update
|
||
|
, subscriptions = subscriptions
|
||
|
}
|