This means that main returns Program type 
(http://package.elm-lang.org/packages/elm-lang/core/5.1.1/Platform#Program 
<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. Model is your defined Model type. Msg is your defined Msg 
type.



Best,
Andrey

> On 21 Jul 2017, at 13:39, Eeek <indrajit...@gmail.com> wrote:
> 
> 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, arguments are 
> separated with ->. If there are no arguments then I would expect only one 
> return. This don't belong to any of it. What is this way of declaring the 
> function types?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to elm-discuss+unsubscr...@googlegroups.com 
> <mailto:elm-discuss+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to