[elm-discuss] Re: elm-make: Map.!: given key is not an element in the map

2016-11-25 Thread matthieu VIDAL
Hi yes it solves the problem. Thanks Le samedi 26 novembre 2016 01:43:17 UTC+1, Tom Ayerst a écrit : > > Have you tried deleting elm-stuff (just build artefacts might work) and > then rebuilding everything? > > On Friday, 25 November 2016 21:44:03 UTC, matthieu VIDAL wrote: >> >> Hi >> >> I've

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Robin Heggelund Hansen
Fine by me. I check Reddit as often as I check this mailing list :) lørdag 26. november 2016 03.34.07 UTC+1 skrev Richard Feldman følgende: > > We've talked in the past about moving to https://reddit.com/r/elm - in > part for threaded discussions and voting, but also more to have things more >

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Simon
With option 1 how do you stop the page reloading on each click on an anchor? Another Con of option 1 might be that it can't cover so many scenarios. Suppose that you have a form, click submit and then - on successful completion of some persistence stage - you want to redirect to another page.

[elm-discuss] Re: Using Navigation - is Events.onWithOptions required?

2016-11-25 Thread Simon
You should read https://groups.google.com/forum/#!topic/elm-discuss/KacB1VqkVJg too There are clearly 2 ways to achieve the same goal. Brian's is the one you get to if you build up from just the Basics library, while you might go Wouter's way if you bake in the Navigation library from the

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Brian Hicks
I'm on board for Reddit, tentatively. I know /r/learnelm has been proposed in other fora. I'm not convinced that Reddit has its users best interests at heart, however, so I'm kind of touching it from a distance. That said, I don't think it can replace a mailing list in general. There's just

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Duane Johnson
On Fri, Nov 25, 2016 at 7:34 PM, Richard Feldman < richard.t.feld...@gmail.com> wrote: > We've talked in the past about moving to https://reddit.com/r/elm - in > part for threaded discussions and voting, but also more to have things more > centralized. > I like reddit and use it frequently.

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread OvermindDL1
I'm curious what those are? Discourse follows the spec for mailing list messages. For the broken email clients like the usual apple one that one's issues are resolved by adding "Re: " to the subject line on the mailing template (which elixir forums did just recently since finally found out

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Hassan Schroeder
On Fri, Nov 25, 2016 at 4:17 PM, OvermindDL1 wrote: > The Elixir forum (which has an Elm section if anyone wants to give it a try) > has resolved its mailing list oddities fairly well now and can be used 'as' > a mailing list in addition to a forum, so it satisfies both

[elm-discuss] Re: elm-make: Map.!: given key is not an element in the map

2016-11-25 Thread Tom Ayerst
Have you tried deleting elm-stuff (just build artefacts might work) and then rebuilding everything? On Friday, 25 November 2016 21:44:03 UTC, matthieu VIDAL wrote: > > Hi > > I've got this poor error message : > > > elm-make: Map.!: given key is not an element in the map > > > > when working

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Joey Eremondi
What's the story on importing old Google groups messages? Do we lose years of searchable history? On Fri, Nov 25, 2016 at 4:17 PM, OvermindDL1 wrote: > The Elixir forum (which has an Elm section if anyone wants to give it a > try) has resolved its mailing list oddities

[elm-discuss] Re: Using Navigation - is Events.onWithOptions required?

2016-11-25 Thread OvermindDL1
I actually prefer to have anchor tags around the document but have a top level catch that stops page movements to url's I whitelist and instead just redirects navigation (which then updates other parts of the app), seems the most simple, but it is definitely not wrapped up in an easy way in elm

Re: [elm-discuss] Re: Elm-discuss admin help?

2016-11-25 Thread Duane Johnson
Thanks Max! I just recently approved everything in the queue (we've had a lot of great questions from newcomers this week!) Going forward, it might be useful to coordinate some of this approving business. I think it's been 100% successful at preventing spam (I've banned about 4 or 5 posters in

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Duane Johnson
On Fri, Nov 25, 2016 at 3:49 PM, Joey Eremondi wrote: > To me this makes no sense. Maybe implies uncertainty: it's either there or > it's not. I think the beauty Witold was pointing to is in the way the `case` statement reads, not the way the type reads on its own.

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Tyler Perkins
Agreed! Back when I started learning Haskell, I was delighted how a Maybe t could be a Just t or Nothing. The choice of names was perfect: succinct, colloquial, yet precise. The problem, I think, is that novices use numbers for toy examples, so "Just 3" is read as "no greater than 3". But when

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Joey Eremondi
> > type Maybe a = Nothing | Maybe a > To me this makes no sense. Maybe implies uncertainty: it's either there or it's not. But in the case that it's there, there's no uncertainty. Maybe 3 isn't uncertain, we know that the value is there. The uncertainty is in the type, before you pattern match,

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Zinggi
I love this! I've read through the whole thread, but for every suggestion so far I thought: "meh, 'Just a' sounds better". But this looks even better! On Friday, 25 November 2016 10:03:54 UTC+1, Witold Szczerba wrote: > > I have it, I have it, look at this: > > type Maybe a = Nothing | Maybe a >

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Erik Lott
> > Is there any reason to favour one over the other, otherwise I'm likely to > go with 2. Yeah, I would say stick with option 1. Our large SPA in elm has used option 2 for the past 5 months, and we've recently swapped over to option 1. Here are some pros & cons: Option 1: Pros -

[elm-discuss] elm rendering confusion (vDom, diff, lazy)

2016-11-25 Thread Tom
Hi, I am currently working on my first Elm program and am confused about a few fundamentals. Your help is greatly appreciated! A model is rendered into svg. Sometimes this is done on every animation frame in order to get animations. I am running into 2 unexpected things: A) when calling

[elm-discuss] Random.list

2016-11-25 Thread Matt Gadda
Hello elm folks, I have a beginner question about Random.list: Without access to the Generator type constructor, how can one build totally novel kinds of list-based generators? For example, suppose you want to construct a list generator that terminates not after an integer number of

Re: [elm-discuss] Edit Table Cell

2016-11-25 Thread Roland Kuhn
Hi Thomas, I got it to work by wrapping the text inside a textarea and watching that: viewCell : Int -> Int -> String -> Html Msg viewCell rowIndex colIndex content = td [ attribute "data-x" "1" , attribute "data-y" "1" , style [("border","solid black 1px")] ] [ textarea

[elm-discuss] Noob questions re the http example

2016-11-25 Thread Justin
Hi, Looking at the following http://elm-lang.org/examples/http I pretty much grok this, but have a couple of (likely dumb) questions - 1) When a function returns 'Cmd Msg', or 'Sub Msg', or 'Html Msg', what kind of a 'thing' is being returned ? Obviously Msg is a type. But are Cmd/Sub/Html

[elm-discuss] Lazy and VirtualDom questions (repost?)

2016-11-25 Thread Tom
I just posted a question, but it is not appearing on the elm-discuss page. If this is a duplicate non-the-less, my apologies. In short, I am rendering a dictionary like object into svg. Sometimes this happens every animation frame in order to get animations. A) Svg.Lazy doesn't seem to be

[elm-discuss] looking for a Director of Frontend Engineering

2016-11-25 Thread Roland Kuhn
Hi all, Evan suggested that I describe my predicament here, if someone knows a better place then please let me know! As you might know I have led the Akka team for several years, so I know quite a bit about technology for distributed systems and backend. I’m one of the three

[elm-discuss] Noob HTTP questions

2016-11-25 Thread Justin
Hi, I have some questions re the Elm http example http://elm-lang.org/examples/http I pretty much grok this, but 1) What type of a thing are 'Cmd Msg', 'Sub Msg', 'Http Msg' ? Obv 'Msg' is a type. 'Cmd', 'Sub', 'Http' sound from the docs like tasks the Elm runtime is going to perform; so is

[elm-discuss] Re: text editor in Elm

2016-11-25 Thread Michael Combs
This is something I tried to do early when 0.17 was released. So simple overview of what I did and what happened: 1. Realized that the view needed to reflect the model (Which is obvious) but hard in practice * Update function resets cursor position if using contenteditable so that was

[elm-discuss] About output file size

2016-11-25 Thread Luiz Bills
Can I output a js file more optimized? A simple hello world outputs 175K (67K minified)... Is not recommeded use Elm for small projects? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread W. Brian Gourlie
Ok, so there 's clearly a desire for something better, but some folks prefer google groups as a mailing list. Elm makes a deliberate appeal to ease-of-use and simplicity, which is at odds with using google groups as a community forum. Past discussions aside, I think it's worth revisiting.

Re: [elm-discuss] What Elm needs to move forward

2016-11-25 Thread Wouter In t Velt
Maybe the Elm Weekly newsletter, the ElmTown podcast, and the remote meetups would be useful additions to the http://elm-lang.org/community page? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving

Re: [elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread Janis Voigtländer
Suggestion: Use the google group's search facility to check whether the thing you propose has been discussed before. :-) Hint: It's the case, and I think that even the "discourse" suggestion was made and discussed then. > Am 25.11.2016 um 20:04 schrieb W. Brian Gourlie : >

[elm-discuss] What is the motivation for using google groups?

2016-11-25 Thread W. Brian Gourlie
I find google groups to be a poor experience on many different levels, and I'm wondering if there is any motivation for using it other than "it's free and easy." If there is any interest in an alternative, I would be willing to set up a discourse instance, if only temporarily, to see if people

Re: [elm-discuss] What Elm needs to move forward

2016-11-25 Thread 'Rupert Smith' via Elm Discuss
On Thursday, November 24, 2016 at 5:35:51 PM UTC, Nick H wrote: > > I found out about the 0.18 release and elm-conf EU via Twitter. Also lots > of announcements there about live coding sessions, local meetups, etc. > > I can try to echo some of that stuff here if the organizers don't do it, >

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Erik Lott
> > One of the main benefits of routing/navigation is that a user can bookmark > or send a URL to someone else, and the website loads up in the correct > state. Option number 1 seems like it would handle this case naturally. I'm > not sure how it would work for option number 2. The

Re: [elm-discuss] What Elm needs to move forward

2016-11-25 Thread Rex van der Spuy
Also, I just sent a request to Elm Weekly to > post their newsletter here on the mailing list. Because everybody should > know about it! > Yes, Elm Weekly is ground-zero in Elm world. Subscribe, everyone!! -- You received this message because you are subscribed

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Max Goldstein
One of the main benefits of routing/navigation is that a user can bookmark or send a URL to someone else, and the website loads up in the correct state. Option number 1 seems like it would handle this case naturally. I'm not sure how it would work for option number 2. -- You received this

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Simon
Erik, that makes such a lot of sense. Thanks for spelling it out. Is there any reason to favour one over the other, otherwise I'm likely to go with 2. Simon On Friday, 25 November 2016 16:52:20 UTC+1, Erik Lott wrote: > > When you're creating an SPA in elm, you'll generally need to choose one of

[elm-discuss] Re: How to use Navigation library

2016-11-25 Thread Erik Lott
When you're creating an SPA in elm, you'll generally need to choose one of two navigation styles: *1. Allow the address bar to drive your model* The standard Navigation package provides this type of functionality. Your model will respond to changes in the address bar, and your views will

[elm-discuss] [JOB] Interactive Media Specialist at TV Ontario

2016-11-25 Thread Rex van der Spuy
Hi Everyone, TV Ontario, the company I currently work for, is hiring 4 new Interactive Media Specialists: https://careersen-tvo.icims.com/jobs/1846/interactive-media-specialists-%284%29/job (I believe you have to be a Canadian citizen to apply.) The job is essentially making educational

[elm-discuss] How to use Navigation library

2016-11-25 Thread Simon
OK, I just don’t quite understand, even while I have working code! I have an app where, as the model changes (in particular the value representing the ‘page’ of my single page app), the Url is updated with this task Navigation.newUrl (toUrl model) But as the Url changes, I get a new message

[elm-discuss] How to use Routing

2016-11-25 Thread Simon
OK, I just don't quite understand, even while I have working code! I have an app where, as the model changes (in particular the value representing the 'page' of my single page app), the Url is updated with this task ``` Navigation.newUrl (toUrl model) ``` But as the Url changes, I get a new

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Witold Szczerba
I have it, I have it, look at this: type Maybe a = Nothing | Maybe a It's very popular to name constructor after type in many languages. case msg of Maybe This -> ... Maybe That -> ... Nothing -> ... Also, "Just" is just fine as well. 24.11.2016 10:21 PM "Michael B"