commit e3ccab2c82145508b0548ebe1a7925306e55d193 Author: Danila Fedorin Date: Mon May 27 14:08:48 2019 -0700 Set up basic web application template diff --git a/src/CacheSim/Model.elm b/src/CacheSim/Model.elm new file mode 100644 index 0000000..1634475 --- /dev/null +++ b/src/CacheSim/Model.elm @@ -0,0 +1,5 @@ +module CacheSim.Model exposing (..) + +type alias Model = () +type alias Flags = () +type alias Msg = () diff --git a/src/Main.elm b/src/Main.elm new file mode 100644 index 0000000..d51177b --- /dev/null +++ b/src/Main.elm @@ -0,0 +1,25 @@ +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 + }