From ff9908895f3c181cda60331553ea39e3d5f428cc Mon Sep 17 00:00:00 2001 From: mike stedman Date: Sun, 9 Dec 2018 14:36:55 -0700 Subject: [PATCH] preparing to port example 2 --- examples/1-presidents.elm | 2 +- examples/README.md | 8 ++++---- examples/elm.js | 2 +- examples/elm.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/1-presidents.elm b/examples/1-presidents.elm index 7fe223f..7f5052b 100644 --- a/examples/1-presidents.elm +++ b/examples/1-presidents.elm @@ -25,7 +25,7 @@ type alias Model = type alias Flags = {} init : (List Person) -> Flags -> ( Model, Cmd Msg ) -init people flags = +init people _ = let model = { people = people diff --git a/examples/README.md b/examples/README.md index 3f4229f..e49e5b1 100644 --- a/examples/README.md +++ b/examples/README.md @@ -23,17 +23,17 @@ Then navigate to `1-presidents.elm` or `2-travel.elm` from [localhost:8000](http To see the examples *with* CSS, run the following commands: ```bash -git clone https://github.com/evancz/elm-sortable-table.git +git clone https://github.com/NoRedInk/elm-sortable-table.git cd elm-sortable-table cd examples -elm-make 1-presidents.elm --yes --output=elm.js +elm make 1-presidents.elm --output=elm.js elm-reactor ``` Then open [localhost:8000/index.html](http://localhost:8000/index.html) in your browser. That HTML file loads in some CSS and whatever code is in `elm.js`. So if you want to see the second example with CSS, you can compile it like this: ```bash -elm-make 2-travel.elm --yes --output=elm.js +elm make 2-travel.elm --output=elm.js ``` -As you make changes, you will want to recompile the Elm code with `elm-make`. \ No newline at end of file +As you make changes, you will want to recompile the Elm code with `elm-make`. diff --git a/examples/elm.js b/examples/elm.js index a7809f5..5f077cf 100644 --- a/examples/elm.js +++ b/examples/elm.js @@ -4795,7 +4795,7 @@ var elm$json$Json$Decode$errorToStringHelp = F2( var elm$core$Platform$Cmd$batch = _Platform_batch; var elm$core$Platform$Cmd$none = elm$core$Platform$Cmd$batch(_List_Nil); var author$project$Main$init = F2( - function (people, flags) { + function (people, _n0) { var model = { people: people, query: '', diff --git a/examples/elm.json b/examples/elm.json index 9d72b5a..34a1b5c 100644 --- a/examples/elm.json +++ b/examples/elm.json @@ -9,11 +9,11 @@ "NoRedInk/elm-sortable-table": "1.0.0", "elm/browser": "1.0.1", "elm/core": "1.0.2", - "elm/html": "1.0.0" + "elm/html": "1.0.0", + "elm/time": "1.0.0" }, "indirect": { "elm/json": "1.1.2", - "elm/time": "1.0.0", "elm/url": "1.0.0", "elm/virtual-dom": "1.0.2" }