Elm 在MVCTodo的更新版本中替换Html.app
我想在Elm 在MVCTodo的更新版本中替换Html.app,elm,Elm,我想在Elm package.json中更新新的Elm。我的新elm package.json是: { "version": "2.0.0", "summary": "TodoMVC created with Elm and elm-html", "repository": "https://github.com/somenxavier/minuscule.git", "license": "BSD3", "source-directories": [
Elm package.json
中更新新的Elm。我的新elm package.json
是:
{
"version": "2.0.0",
"summary": "TodoMVC created with Elm and elm-html",
"repository": "https://github.com/somenxavier/minuscule.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.1.1 <= v < 6.0.0",
"elm-lang/html": "2.0.0 <= v < 3.0.0",
"elm-lang/dom": "1.1.1 <= v < 2.0.0",
"elm-lang/virtual-dom": "2.0.4 <= v < 2.1.0",
"elm-lang/navigation": "2.1.0 <= v < 2.2.0",
"elm-community/string-extra": "1.4.0 <= v < 1.5.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
我知道html.app
是,但是如何在代码中替换它的引用呢?具体来说,如何替换这个
Html.App.map (\msg -> UpdateTask ( id, msg )) taskView
看。具体而言:
elm lang/html
将html.App
折叠为html
。因此,您需要删除任何导入Html.App
imports,并参考Html.program
Html.App.map
Html.App.map (\msg -> UpdateTask ( id, msg )) taskView