Thanks again Max. 

Why in this case is it using uppercase Msg? I figured this out partially by 
studying this 
link https://robots.thoughtbot.com/decoding-json-structures-with-elm
and in that they use 

port response : (Json.Value -> msg) -> Sub msg

which works (obviously, because msg is any type). If I change that to 
uppercase Msg, it breaks. Can you help me understand why you used *Msg* 
instead of *msg*?



On Sunday, June 5, 2016 at 9:20:24 PM UTC-5, Max Goldstein wrote:
>
> port projects : (Json.Value -> Msg) -> Sub Msg
>
> type Msg = NewProjects Json.Value | OtherThings
>
> subscriptions model =
>   projects NewProjects
>
> Then in the update function, run the decoder on the JSON value in the 
> NewProjects tag, and handle the succeeding and failing cases.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to