Sha256: 6e8a5ecb5e591a93bdd45ac49c9d05d81a6e1ef4d5f003a4046937e5bdbba706

Contents?: true

Size: 947 Bytes

Versions: 30

Compression:

Stored size: 947 Bytes

Contents

module Main exposing (..)

import Html exposing (Html, h1, text)
import Html.Attributes exposing (style)

-- MODEL

type alias Model =
  {
  }

-- INIT

init : (Model, Cmd Message)
init =
  (Model, Cmd.none)

-- VIEW

view : Model -> Html Message
view model =
  -- The inline style is being used for example purposes in order to keep this example simple and
  -- avoid loading additional resources. Use a proper stylesheet when building your own app.
  h1 [style [("display", "flex"), ("justify-content", "center")]]
     [text "Hello Elm!"]

-- MESSAGE

type Message
  = None

-- UPDATE

update : Message -> Model -> (Model, Cmd Message)
update message model =
  (model, Cmd.none)

-- SUBSCRIPTIONS

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

-- MAIN

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

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
webpacker-jets-3.2.101 lib/install/examples/elm/Main.elm
webpacker-jets-3.2.100 lib/install/examples/elm/Main.elm
webpacker-4.0.0.pre.3 lib/install/examples/elm/Main.elm
webpacker-3.5.5 lib/install/examples/elm/Main.elm
webpacker-3.5.3 lib/install/examples/elm/Main.elm
webpacker-3.5.2 lib/install/examples/elm/Main.elm
webpacker-3.5.1 lib/install/examples/elm/Main.elm
webpacker-3.5.0 lib/install/examples/elm/Main.elm
webpacker-3.4.3 lib/install/examples/elm/Main.elm
webpacker-4.0.0.pre.pre.2 lib/install/examples/elm/Main.elm
webpacker-4.0.0.pre.pre.1 lib/install/examples/elm/Main.elm
webpacker-3.4.1 lib/install/examples/elm/Main.elm
webpacker-3.4.0 lib/install/examples/elm/Main.elm
webpacker-3.3.1 lib/install/examples/elm/Main.elm
webpacker-3.3.0 lib/install/examples/elm/Main.elm
webpacker-3.2.2 lib/install/examples/elm/Main.elm
webpacker-3.2.1 lib/install/examples/elm/Main.elm
webpacker-3.2.0 lib/install/examples/elm/Main.elm
webpacker-3.1.1 lib/install/examples/elm/Main.elm
webpacker-3.1.0 lib/install/examples/elm/Main.elm