[elm-discuss] Record syntax overhaul

2017-03-01 Thread Francesco Orsenigo
I'm posting this here rather than in elm-dev because the discussion might get both long and broad. Also, as much as I would like to help out, I understand that only Evan changes the compiler. The matter has been discussed already, and it might be useful to get an idea of the prior thoughts:

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, March 1, 2017 at 4:24:54 PM UTC, Witold Szczerba wrote: > > So, you ask for a list of mutations and then, for each mutation you repeat > exactly the same procedure which is not related to the mutation you are > currently at. > Why are you iterating over mutations? > Good point. No

Re: [elm-discuss] Decoding JSON to Union types.

2017-03-01 Thread Dan Willis
Thanks so much, Peter & Brian, I had earlier found your article re: dates, but revisiting it now has helped! Yep, I like the idea of keeping that function as agnostic as possible, i.e., out of a Decoder. Thanks again for your help, I really appreciate it. On Thursday, 2 March 2017 03:40:12

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread Witold Szczerba
So, you ask for a list of mutations and then, for each mutation you repeat exactly the same procedure which is not related to the mutation you are currently at. Why are you iterating over mutations? Regards, Witold Szczerba On Wed, Mar 1, 2017 at 4:59 PM, 'Rupert Smith' via Elm Discuss <

[elm-discuss] Re: Elm package manager behind a proxy

2017-03-01 Thread Abhinav Gogna
Roovo, Sorry for the late response. I have verified github connection for other repositories. I can git clone. I can even do wget on the http://github.com/elm-lang/core/zipball/5.1.1/ but I can't get it to work with elm-repl. After some rudimentary research, I found out that elm uses

Re: [elm-discuss] Decoding JSON to Union types.

2017-03-01 Thread Brian Hicks
Seconding what Peter said! I think the approach you've got here (String -> OrderStatus) is good. If you don't specialize it to a decoder you can do a lot more with it (testing, other serialization methods.) Composing those functions together is the way to go. I've also written about this, but

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, March 1, 2017 at 11:19:02 AM UTC, Rupert Smith wrote: > > On Tuesday, February 28, 2017 at 10:54:56 PM UTC, Witold Szczerba wrote: >> >> Hi, >> few days ago I was trying to embed a date picker in my Elm app. I have >> used MutationObserver, so in Elm all I have to do is to add a

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, February 28, 2017 at 10:54:56 PM UTC, Witold Szczerba wrote: > > Hi, > few days ago I was trying to embed a date picker in my Elm app. I have > used MutationObserver, so in Elm all I have to do is to add a specific > class and custom event handler, so there is no need to track it by

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, February 28, 2017 at 10:54:56 PM UTC, Witold Szczerba wrote: > > Hi, > few days ago I was trying to embed a date picker in my Elm app. I have > used MutationObserver, so in Elm all I have to do is to add a specific > class and custom event handler, so there is no need to track it by

[elm-discuss] Re: Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, February 28, 2017 at 6:40:36 PM UTC, Richard Haven wrote: > > My understanding is that the Elm should create the entire DOM every time, > and the runtime will do the diff and change the parts that need changing. > Yes, this is my understanding too. The virtual DOM is built each time