I’ve been learning Elm for less than a week, so lots of ways I could be off track here, hope this isn’t an awfully stupid question. When browsing around brought me to a nice paper about FRP, I found in it a little one-liner program that displays mouse coordinates on a mouse move event. Of course that program doesn’t have a thing in it that works in 0.19, but I assume the capability is not gone, so I thought I’d try to get it working.
Now I have a program with
subscriptions model = Browser.Events.onMouseMove Json.Decode.____
But how do I know what to ask for in that JSON blob? Maybe what I’m looking for isn’t even in there, but … what is in there? The schema, maybe that would be the word.
I’m guessing, from limited experience with JSON, that this is a data structure marshaled into a string. Is there any way, within the standard elm distribution, to just return that string?