Re: [elm-discuss] why -> Sub msg in ports instead of Sub Msg

2016-10-13 Thread Petr Vápenka
Lowercase "msg" is just a type parameter. It says that the first and second
occurence of "msg" in the type signature means the same type, whatever that
type it actually is.

If it was Sub Msg, Msg would be some actual type you would be forced to
work with.

Petr

On Thu, Oct 13, 2016 at 6:42 PM, António Ramos  wrote:

> I would like to know why Sub msg in lowercase in above code
>
> port suggestions : (List String -> msg) -> Sub msg
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] why -> Sub msg in ports instead of Sub Msg

2016-10-13 Thread Janis Voigtländer
Relevant:
http://faq.elm-community.org/17.html#what-is-the-difference-between-cmd-msg-and-cmd-msg
​

2016-10-13 18:42 GMT+02:00 António Ramos :

> I would like to know why Sub msg in lowercase in above code
>
> port suggestions : (List String -> msg) -> Sub msg
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] why -> Sub msg in ports instead of Sub Msg

2016-10-13 Thread António Ramos
I would like to know why Sub msg in lowercase in above code

port suggestions : (List String -> msg) -> Sub msg

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.