Update constraints and code for 0.18

This commit is contained in:
Evan Czaplicki 2016-10-07 11:24:39 -07:00
parent 86377edfcc
commit 8206138b89
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@
"Table"
],
"dependencies": {
"elm-lang/core": "4.0.0 <= v < 5.0.0",
"elm-lang/html": "1.1.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.17.0 <= v < 0.18.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}

View File

@ -476,7 +476,7 @@ toHeaderInfo (State sortName isReversed) toMsg { name, sorter } =
onClick : String -> Bool -> (State -> msg) -> Attribute msg
onClick name isReversed toMsg =
E.on "click" <| Json.map toMsg <|
Json.object2 State (Json.succeed name) (Json.succeed isReversed)
Json.map2 State (Json.succeed name) (Json.succeed isReversed)
viewRow : (data -> String) -> List (ColumnData data msg) -> (data -> List (Attribute msg)) -> data -> ( String, Html msg )