1. In node, the msg parameter is for the types of messages the node can
emit. So if you have a text-box that emits messages when its value changes,
it could have type "Node String".
2. The "type Node msg = Node" is really just some hackery to get things
working with Native. It's just declaring to
On Wed, Feb 15, 2017 at 11:31 AM, Will Tian wrote:
> type Node msg = Node
>
> what is the purpose of the above line?
>
I think it's a placeholder type that is not handled in Elm proper, but by
the compiler itself. See
Hi,
I'm trying to understand how the Html module works. I see many methods with
return type Html msg, which is a type alias for Node msg.
After tracking down the source code and reading into it, I am confused by
the following line:
type Node msg = Node
what is the purpose of the above