Re: [elm-discuss] Re: Unexpected compiler behaviour and message "pattern is redundant".

2017-07-22 Thread Андрей Коппель
Hello. The compiler gives here correct message. Because your messageParam can be anything of type Message. Lodash(_) in Elm means the same. So it means anything with type Message. That’s why you have two same branches. And Elm compiler tells you about it. Best, Andrey > On 10 Jul 2017, at

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.