Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Commit

Permalink
Updated examples for elm 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWinkelmann committed Dec 7, 2016
1 parent 6d9acec commit 1078c7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
4 changes: 1 addition & 3 deletions examples/1-presidents.elm
@@ -1,14 +1,12 @@
import Html exposing (Html, div, h1, input, text)
import Html.App as App
import Html.Attributes exposing (placeholder)
import Html.Events exposing (onInput)
import String
import Table



main =
App.program
Html.program
{ init = init presidents
, update = update
, view = view
Expand Down
10 changes: 4 additions & 6 deletions examples/2-travel.elm
@@ -1,16 +1,14 @@
import Html exposing (Html, Attribute, div, h1, input, p, text)
import Html.App as App
import Html.Attributes exposing (checked, style, type')
import Html.Attributes exposing (checked, style, type_)
import Html.Events exposing (onClick)
import Html.Lazy exposing (lazy)
import String
import Table exposing (defaultCustomizations)
import Time exposing (Time)



main =
App.program
Html.program
{ init = init missionSights
, update = update
, view = view
Expand Down Expand Up @@ -171,7 +169,7 @@ checkboxColumn =
viewCheckbox : Sight -> Table.HtmlDetails Msg
viewCheckbox {selected} =
Table.HtmlDetails []
[ input [ type' "checkbox", checked selected ] []
[ input [ type_ "checkbox", checked selected ] []
]


Expand All @@ -198,4 +196,4 @@ missionSights =
, Sight "Get catcalled at BART" (5 * Time.minute) 0 1.6 False
, Sight "Buy a painting at \"Stuff\"" (45 * Time.minute) 400 4.7 False
, Sight "McDonalds at 24th" (20 * Time.minute) 5 2.8 False
]
]
10 changes: 5 additions & 5 deletions examples/elm-package.json
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
Expand All @@ -8,9 +8,9 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "4.0.3 <= v < 5.0.0",
"elm-lang/html": "1.1.0 <= v < 2.0.0",
"evancz/elm-sortable-table": "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",
"evancz/elm-sortable-table": "1.0.1 <= v < 2.0.0"
},
"elm-version": "0.17.0 <= v < 0.18.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}

0 comments on commit 1078c7f

Please sign in to comment.