Skip to content

Commit

Permalink
Update examples to 0.18.
Browse files Browse the repository at this point in the history
  • Loading branch information
debois committed Dec 14, 2016
1 parent 568cd51 commit 3b10a6d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
7 changes: 3 additions & 4 deletions examples/childNodes.elm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Html.App exposing (map)
import Platform.Cmd exposing (none)
import Platform.Sub
import Json.Decode as Decode exposing (Decoder)
Expand Down Expand Up @@ -86,7 +85,7 @@ view model =
, div
[ class "value" ]
[ text <| "Model value: " ++ toString model ]
, map Measure <|
, Html.map Measure <|
button
-- target
[ class "button"
Expand All @@ -96,9 +95,9 @@ view model =
]


main : Program Never
main : Program Never Model Msg
main =
Html.App.program
Html.program
{ init = ( model0, none )
, update = update
, subscriptions = always Sub.none
Expand Down
9 changes: 4 additions & 5 deletions examples/elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"../src",
"examples"
],
"exposed-modules": [
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "4.0.0 <= v < 5.0.0",
"elm-lang/html": "1.0.0 <= v < 2.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-lang/html": "2.0.0 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}
7 changes: 3 additions & 4 deletions examples/post.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Main exposing (..)

import Html.App exposing (map)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
Expand Down Expand Up @@ -91,7 +90,7 @@ view model =
]
-- childNodes (e)
]
, map Measure <|
, Html.map Measure <|
button
-- target (a)
[ css
Expand All @@ -113,9 +112,9 @@ view model =
-- STARTAPP


main : Program Never
main : Program Never Model Msg
main =
Html.App.program
Html.program
{ init = ( model, none )
, view = view
, subscriptions = always Sub.none
Expand Down
7 changes: 3 additions & 4 deletions examples/post2.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Main exposing (..)

import Html.App exposing (map)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
Expand Down Expand Up @@ -102,7 +101,7 @@ view model =
]
-- childNodes (e)
]
, map Measure <|
, Html.map Measure <|
button
-- target (a)
[ css
Expand Down Expand Up @@ -130,9 +129,9 @@ view model =
-- APP


main : Program Never
main : Program Never Model Msg
main =
Html.App.program
Html.program
{ init = ( model, none )
, subscriptions = always Sub.none
, update = update
Expand Down

0 comments on commit 3b10a6d

Please sign in to comment.