9. elm init
プロジェクトの作成
~ $ mkdir jsproj/
~ $ cd jsproj/
~/jsproj $ elm init
Hello! Elm projects always start with an elm.json file. I can create them!
...
Knowing all that, would you like me to create an elm.json file now? [Y/n]: y
Okay, I created it. Now read that link!
Process /home/cuomo/node_modules/.bin/elm finished
~/jsproj $
9
10. elm repl
インタラクティブに実行や、関数の型の確認などができる
Haskellユーザーにとってはとってもフレンドリ
$ elm repl
---- Elm 0.19.1 ------------------------
Say :help for help and :exit to exit! ..
----------------------------------------
> 1 + 2
3 : number
> "ABC"
"ABC" : String
> import Html
> Html.div
<function>
: List (Html.Attribute msg) -> List (Html.Html msg) -> Html.Html msg
10