Thx for the suggestions you guys. I think the point I failed to grasp is
that the return type from a function can be abstract, and get specialized
to any type because the abstract type doesn't actually get used anywhere.
Something along those lines.
I've elected to just pass the ws address to subcomponents and call
WebSocket.send in subcomponents directly. Much simpler, don't have to deal
with layered levels of imaginary return types that aren't actually used.
Might go back and use a partially applied function sometime if I really
need the flexibility of that for some reason.
Ben
On Monday, August 15, 2016 at 11:44:22 PM UTC-6, Aaron VonderHaar wrote:
>
> Along with Janis' explanation, you could also say
>
> type alias Model =
> { sendf : String -> Cmd Msg -- (or any other concrete message type
> you want)
> , otherstuff : String
> }
>
> if you don't want Model to have a parameter.
>
>
--
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.