I am learning Elm, by going through "Programming Elm" by Fairbank (https://pragprog.com/book/jfelm/programming-elm), and going through some of the same growing pains as the person who posted what does the elm signature mean in "Program Never Model Msg"? -- the reply there by @dogbert states that
Program is a type parameterized by three type variables
What does that mean exactly? Does it mean that Program is a function and that the types of its parameters are the three type variables?
Thus
main: Program () {something: string} msg
says Program
accepts only empty flags, a model that has the type given, and a msg?
(By the way, what then is it saying the type of main
is in this context? That is, it's a function of type Program?)
The nice thing about the book "Programming with Elm" is that it gets you up and going quickly, but the not so great thing is that it introduces some things -- like the above -- without going into much detail about what, exactly, they mean. I suppose I should really start with reading through the tutorial on the elm site, which is my next destination. But any help here would be appreciated.