[elm-discuss] Stance on native APIs for 0.18?

2016-12-04 Thread Wil C
I was reading the various message posts, and I happened upon this post on the stance of native modules from a year ago: https://groups.google.com/forum/#!searchin/elm-dev/native$20author$3aeva...@gmail.com/elm-dev/1JW6wknkDIo/H9ZnS71BCAAJ I was just wondering if there was an updated stance? Or

[elm-discuss] Re: Maximum call stack size exceeded while parsing generated code

2016-12-04 Thread Iain Gray
It turned out to be an instance of this . I have a list of time-zones that I use for a drop-down list, which was big enough to cause the stack overflow. As the issue-poster mentioned, I was able to fix it by splitting my list into multiple

[elm-discuss] Re: Pattern matching using existing bound variables

2016-12-04 Thread David Andrews
I think the problem is slightly different than you think. The reason the compiler complains about the redundant pattern is that "x" already matches everything. There are no more cases for "_" to handle. This compiles with no problem: let x = 1 in case something of x -> ...

Re: [elm-discuss] Maximum call stack size exceeded while parsing generated code

2016-12-04 Thread Nick H
In my case, a recursive function was written in such a way that it couldn't benefit from tail-call optimization. It was in 0.17. That was the only time I've encountered the error. On Sun, Dec 4, 2016 at 3:58 PM, Richard Feldman wrote: > Is this true only when the

Re: [elm-discuss] Maximum call stack size exceeded while parsing generated code

2016-12-04 Thread Richard Feldman
Is this true only when the debugger is running? I've heard of people hitting this when the debugger is running (e.g. in elm-reactor, which always has the debugger running) but not so much with a plain old elm-make. On Saturday, December 3, 2016 at 8:01:13 PM UTC-8, Nick Hollon wrote: > > I have

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-12-04 Thread dedo
yes, that does seem to help, thanks for the pointer! ... ah, those magic incantations :) On Sunday, December 4, 2016 at 4:37:43 PM UTC-6, Richard Feldman wrote: > > Simon - video is not up yet. > > dedo - I haven't tried that, but try what Rupert did here >

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-12-04 Thread Richard Feldman
Simon - video is not up yet. dedo - I haven't tried that, but try what Rupert did here - seemed to help with children of lists! On Sunday, December 4, 2016 at 1:43:08 PM UTC-8, dedo wrote: > > @Richard, I tried to use your

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-12-04 Thread dedo
@Richard, I tried to use your google-maps / polymer version but had trouble getting google-map-marker s to work as children of the map element. Did map markers work for you? On Thursday, November 3, 2016 at 11:54:11 AM UTC-5, Richard

Re: [elm-discuss] Making enter/return in text input have same effect as button

2016-12-04 Thread Brian Marick
Thank you! Am I right in thinking than this way (shown below) is more idiomatic than using a form and a true submit button? [ p [class "control"] [ input [ ... , Events.onInput (SetTentativeTag animal.id)

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-12-04 Thread Simon
Is the video available now? On Friday, 4 November 2016 02:36:52 UTC+1, Richard Feldman wrote: > > Yes and yes! I'll post when the video is up. > > On Thu, Nov 3, 2016 at 3:45 PM, Peter Damoc > wrote: > >> This is pretty awesome. >> >> Have you given the talk in Vienna? >>

Re: [elm-discuss] Why not components?

2016-12-04 Thread Wouter In t Velt
Op zondag 4 december 2016 15:43:40 UTC+1 schreef Peter Damoc: > > You're trading one set of boilerplate for another. > Fair enough. I could have pointed that out in the conclusions. Both your versions are almost as bad as you are forcing internal details of > the functioning of the dropdown

Re: [elm-discuss] Why not components?

2016-12-04 Thread Peter Damoc
On Sun, Dec 4, 2016 at 1:50 PM, Wouter In t Velt wrote: > Any feedback would be welcome! > > You're trading one set of boilerplate for another. Both your versions are almost as bad as you are forcing internal details of the functioning of the dropdown onto the user of

[elm-discuss] Re: Why not components?

2016-12-04 Thread Wouter In t Velt
Op zondag 4 december 2016 15:02:02 UTC+1 schreef Rex van der Spuy: > > I found both Evan's sortable table example and your (excellent!) dropdown > menu just a few levels too advanced for my poor beginner's brain to fully > grok. > Glad you liked it! Were there any particular sections in the

[elm-discuss] Re: Why not components?

2016-12-04 Thread Rex van der Spuy
Thanks so much for writing that up! This is exactly the point in my Elm learning that I'm struggling with at the moment, so this extremely helpful. In the past I've always made my "components" as self-contained M/U/V modules - that was great because I could re-use them in other projects just by

[elm-discuss] Why not components?

2016-12-04 Thread Wouter In t Velt
Hi All, To explore and explain (in a beginner-friendly way) why making stateful reusable components in Elm is not always a good idea, I have made a demo + write-up in 2 articles over on Medium. Here are the links to the drafts:

[elm-discuss] Re: Pattern matching using existing bound variables

2016-12-04 Thread Michał Podwórny
Thanks for clearing things out! W dniu niedziela, 4 grudnia 2016 02:40:41 UTC+1 użytkownik Michał Podwórny napisał: > > Hi, > > Consider this: > let > x = 1 > in > case something of > x -> (...) > _ -> (...) > > The compiler will complain that "The following pattern is redundant", >

Re: [elm-discuss] Making enter/return in text input have same effect as button

2016-12-04 Thread Matthew Bray
Take a look at onEnter from elm-todomvc: https://github.com/evancz/elm-todomvc/blob/master/Todo.elm#L237 On Sat, 3 Dec 2016, 22:11 Brian Marick, wrote: > (Disclaimer: I didn’t come to Elm knowing Javascript.) > > Anyone know of a source for code that sends a message when