Sha256: 61577a0d788b06251d1e4eef2101c5a927f922d541292ed030e4bb08930c74a7

Contents?: true

Size: 975 Bytes

Versions: 48

Compression:

Stored size: 975 Bytes

Contents

module Main exposing (..)

import Browser
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", style "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 (Maybe {}) Model Message
main =
  Browser.element
    {
      init = always init,
      view = view,
      update = update,
      subscriptions = subscriptions
    }

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/Main.elm
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/Main.elm
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/Main.elm
jetpacker-0.7.0 lib/install/examples/elm/Main.elm
webpacker-5.4.4 lib/install/examples/elm/Main.elm
jetpacker-0.6.0 lib/install/examples/elm/Main.elm
webpacker-5.4.3 lib/install/examples/elm/Main.elm
webpacker-5.4.2 lib/install/examples/elm/Main.elm
webpacker-5.4.1 lib/install/examples/elm/Main.elm
webpacker-5.4.0 lib/install/examples/elm/Main.elm
webpacker-5.3.0 lib/install/examples/elm/Main.elm
webpacker-5.2.2 lib/install/examples/elm/Main.elm
jetpacker-0.5.0 lib/install/examples/elm/Main.elm
webpacker-5.2.1 lib/install/examples/elm/Main.elm
webpacker-4.3.0 lib/install/examples/elm/Main.elm
webpacker-5.2.0 lib/install/examples/elm/Main.elm
webpacker-5.1.1 lib/install/examples/elm/Main.elm
webpacker-5.1.0 lib/install/examples/elm/Main.elm
webpacker-5.0.1 lib/install/examples/elm/Main.elm
webpacker-5.0.0 lib/install/examples/elm/Main.elm