Re: [elm-discuss] main : Program Never Model Msg -- What does it mean?

2017-07-21 Thread Андрей Коппель
This means that main returns Program type (http://package.elm-lang.org/packages/elm-lang/core/5.1.1/Platform#Program ). It has three arguments which are flags, model and msg. Never means there will no always no flags.

Re: [elm-discuss] main : Program Never Model Msg -- What does it mean?

2017-07-21 Thread Peter Damoc
The main is a *value* of type `Program Never Model Msg`, it is not a function. The 3 types after Program, (Never, Model and Msg) are the arguments of the type in the same way that String is an argument for List in `List String` You can read that as "a Program that does not take any flags (Never)

[elm-discuss] main : Program Never Model Msg -- What does it mean?

2017-07-20 Thread Eeek
I am beginner in Elm, and going through elm-tutorial.org. I have problem in understanding the declaration of main function in https://www.elm-tutorial.org/en/02-elm-arch/02-structure.html. It says main : Program Never Model Msg What does it represent? I read under functions tutorial that,