Re: [elm-discuss] Trigger an action on init instead Cmd.none

2016-07-14 Thread William Casarin
Hey Adrián, On Thu, Jul 14, 2016 at 10:19 AM, Adrián Ribao wrote: > I've been trying several hours now to modify it so instead of clicking the > button, on init I could trigger the message JoinChannel. how about this? init = update JoinChannel initModel Cheers, William

Re: [elm-discuss] Appropriate infix synonym for Maybe.map and Maybe.withDefault

2016-06-20 Thread William Casarin
Hey Tim, On Mon, Jun 20, 2016 at 3:08 PM, Tim Stewart wrote: > I'm interested in what others think about this specific use of infix. The issue with infix operators is they add a few extra thing you have to worry about: * precedence, aka. order of operations * it's

Re: [elm-discuss] http request: How to access the whole response

2016-06-16 Thread William Casarin
Hey germain, On Thu, Jun 16, 2016 at 9:52 AM, germain wrote: > > HOWEVER I just get the value field of the response and nothing else > > UnexpectedPayload "Expecting an object with a field named `fakeInt` but > instead got: